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=e036ff91768a8b77fa1a37025069e4126dc6c01d;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php b/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php index e036ff917..c7ea78f7c 100644 --- a/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php +++ b/web/core/modules/taxonomy/src/Form/VocabularyResetForm.php @@ -9,6 +9,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** * Provides confirmation form for resetting a vocabulary to alphabetical order. + * + * @internal */ class VocabularyResetForm extends EntityConfirmFormBase { @@ -80,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()); }