X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FTermForm.php;fp=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FTermForm.php;h=95909bd3b174c01289020cad7e67b20b55fbc635;hp=6de48e0af4b66a66713ba351f68bce69d6bb2f03;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/taxonomy/src/TermForm.php b/web/core/modules/taxonomy/src/TermForm.php index 6de48e0af..95909bd3b 100644 --- a/web/core/modules/taxonomy/src/TermForm.php +++ b/web/core/modules/taxonomy/src/TermForm.php @@ -132,11 +132,11 @@ class TermForm extends ContentEntityForm { $view_link = $term->link($term->getName()); switch ($result) { case SAVED_NEW: - drupal_set_message($this->t('Created new term %term.', ['%term' => $view_link])); + $this->messenger()->addStatus($this->t('Created new term %term.', ['%term' => $view_link])); $this->logger('taxonomy')->notice('Created new term %term.', ['%term' => $term->getName(), 'link' => $edit_link]); break; case SAVED_UPDATED: - drupal_set_message($this->t('Updated term %term.', ['%term' => $view_link])); + $this->messenger()->addStatus($this->t('Updated term %term.', ['%term' => $view_link])); $this->logger('taxonomy')->notice('Updated term %term.', ['%term' => $term->getName(), 'link' => $edit_link]); break; }