X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FCommentTypeForm.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FCommentTypeForm.php;h=fd7125846c6a7d46287705fb5828cefc510bd3b3;hp=0ac5b446bd556fe04ecdb183fc70e76f40107c5d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/comment/src/CommentTypeForm.php b/web/core/modules/comment/src/CommentTypeForm.php index 0ac5b446b..fd7125846 100644 --- a/web/core/modules/comment/src/CommentTypeForm.php +++ b/web/core/modules/comment/src/CommentTypeForm.php @@ -111,7 +111,7 @@ class CommentTypeForm extends EntityForm { '#default_value' => $comment_type->getTargetEntityTypeId(), '#title' => t('Target entity type'), '#options' => $options, - '#description' => t('The target entity type can not be changed after the comment type has been created.') + '#description' => t('The target entity type can not be changed after the comment type has been created.'), ]; } else { @@ -160,12 +160,12 @@ class CommentTypeForm extends EntityForm { $edit_link = $this->entity->link($this->t('Edit')); if ($status == SAVED_UPDATED) { - drupal_set_message(t('Comment type %label has been updated.', ['%label' => $comment_type->label()])); + $this->messenger()->addStatus(t('Comment type %label has been updated.', ['%label' => $comment_type->label()])); $this->logger->notice('Comment type %label has been updated.', ['%label' => $comment_type->label(), 'link' => $edit_link]); } else { $this->commentManager->addBodyField($comment_type->id()); - drupal_set_message(t('Comment type %label has been added.', ['%label' => $comment_type->label()])); + $this->messenger()->addStatus(t('Comment type %label has been added.', ['%label' => $comment_type->label()])); $this->logger->notice('Comment type %label has been added.', ['%label' => $comment_type->label(), 'link' => $edit_link]); }