diff --git a/src/Entity/Form/GroupForm.php b/src/Entity/Form/GroupForm.php index 692a110..0fc176d 100644 --- a/src/Entity/Form/GroupForm.php +++ b/src/Entity/Form/GroupForm.php @@ -24,8 +24,9 @@ class GroupForm extends ContentEntityForm { $t_args = [ '@type' => $this->entity->getGroupType()->label(), '%title' => $this->entity->label(), + '!operation' => $this->operation == 'edit' ? 'updated' : 'created', ]; - drupal_set_message(t('@type %title has been created.', $t_args)); + drupal_set_message(t('@type %title has been !operation.', $t_args)); $form_state->setRedirect('entity.group.canonical', ['group' => $this->entity->id()]); return $return;