X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FForm%2FVocabularyResetForm.php;h=c7ea78f7c02c888327624a98910e78e8757e2e97;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=439d994cf1046472562c2a3b73b788c602e2118c;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php b/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php index 439d994cf..c7ea78f7c 100644 --- a/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php +++ b/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php @@ -82,7 +82,7 @@ class VocabularyResetForm extends EntityConfirmFormBase { parent::submitForm($form, $form_state); $this->termStorage->resetWeights($this->entity->id()); - drupal_set_message($this->t('Reset vocabulary %name to alphabetical order.', ['%name' => $this->entity->label()])); + $this->messenger()->addStatus($this->t('Reset vocabulary %name to alphabetical order.', ['%name' => $this->entity->label()])); $this->logger('taxonomy')->notice('Reset vocabulary %name to alphabetical order.', ['%name' => $this->entity->label()]); $form_state->setRedirectUrl($this->getCancelUrl()); }