Pull merge.
[yaffs-website] / web / core / modules / taxonomy / src / Form / VocabularyResetForm.php
index e036ff91768a8b77fa1a37025069e4126dc6c01d..c7ea78f7c02c888327624a98910e78e8757e2e97 100644 (file)
@@ -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());
   }