Skip to content
Snippets Groups Projects

#3423341 Adjust question of the delete confirmation form

Open Eric Smith requested to merge issue/group-3423341:3423341-improve-ux-for into 3.3.x
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
@@ -28,7 +28,12 @@ class GroupRelationshipDeleteForm extends ContentEntityConfirmFormBase {
* {@inheritdoc}
*/
public function getQuestion() {
return $this->t('Are you sure you want to delete %name?', ['%name' => $this->entity->label()]);
$message = 'Are you sure you want to remove %name from %group?';
$replace = [
'%name' => $this->getEntity()->label(),
'%group' => $this->getEntity()->getGroup()->label(),
];
return $this->t($message, $replace);
}
/**
Loading