X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fblock_content%2Fsrc%2FBlockContentTypeForm.php;fp=web%2Fcore%2Fmodules%2Fblock_content%2Fsrc%2FBlockContentTypeForm.php;h=711cda678b7e1452491ca65328b7b079279ab525;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=00098d3cf3b41e506a6b7f6d5d1bd805d8be7419;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/block_content/src/BlockContentTypeForm.php b/web/core/modules/block_content/src/BlockContentTypeForm.php index 00098d3cf..711cda678 100644 --- a/web/core/modules/block_content/src/BlockContentTypeForm.php +++ b/web/core/modules/block_content/src/BlockContentTypeForm.php @@ -100,12 +100,12 @@ class BlockContentTypeForm extends BundleEntityFormBase { $edit_link = $this->entity->link($this->t('Edit')); $logger = $this->logger('block_content'); if ($status == SAVED_UPDATED) { - drupal_set_message(t('Custom block type %label has been updated.', ['%label' => $block_type->label()])); + $this->messenger()->addStatus(t('Custom block type %label has been updated.', ['%label' => $block_type->label()])); $logger->notice('Custom block type %label has been updated.', ['%label' => $block_type->label(), 'link' => $edit_link]); } else { block_content_add_body_field($block_type->id()); - drupal_set_message(t('Custom block type %label has been added.', ['%label' => $block_type->label()])); + $this->messenger()->addStatus(t('Custom block type %label has been added.', ['%label' => $block_type->label()])); $logger->notice('Custom block type %label has been added.', ['%label' => $block_type->label(), 'link' => $edit_link]); }