X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fpathauto%2Fsrc%2FForm%2FPatternDisableForm.php;fp=web%2Fmodules%2Fcontrib%2Fpathauto%2Fsrc%2FForm%2FPatternDisableForm.php;h=1e1ac3f9c273f426a0ed0958061c59ed3acdf72a;hp=c87b88b6a2e74307270b4aef8addf5d6347e7aa0;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/pathauto/src/Form/PatternDisableForm.php b/web/modules/contrib/pathauto/src/Form/PatternDisableForm.php index c87b88b6a..1e1ac3f9c 100644 --- a/web/modules/contrib/pathauto/src/Form/PatternDisableForm.php +++ b/web/modules/contrib/pathauto/src/Form/PatternDisableForm.php @@ -44,7 +44,9 @@ class PatternDisableForm extends EntityConfirmFormBase { */ public function submitForm(array &$form, FormStateInterface $form_state) { $this->entity->disable()->save(); - drupal_set_message($this->t('Disabled pattern %label.', array('%label' => $this->entity->label()))); + $this->messenger()->addMessage($this->t('Disabled pattern %label.', [ + '%label' => $this->entity->label(), + ])); $form_state->setRedirectUrl($this->getCancelUrl()); }