X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield_ui%2Fsrc%2FForm%2FEntityDisplayModeFormBase.php;h=0e502f71b71a84149502b3ed370ba9b79e732207;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=72a8a19643a0368fa3aea6b5eb9af160529a61f0;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php b/web/core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php index 72a8a1964..0e502f71b 100644 --- a/web/core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php +++ b/web/core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php @@ -78,7 +78,7 @@ abstract class EntityDisplayModeFormBase extends EntityForm { * {@inheritdoc} */ public function save(array $form, FormStateInterface $form_state) { - drupal_set_message($this->t('Saved the %label @entity-type.', ['%label' => $this->entity->label(), '@entity-type' => $this->entityType->getLowercaseLabel()])); + $this->messenger()->addStatus($this->t('Saved the %label @entity-type.', ['%label' => $this->entity->label(), '@entity-type' => $this->entityType->getLowercaseLabel()])); $this->entity->save(); \Drupal::entityManager()->clearCachedFieldDefinitions(); $form_state->setRedirectUrl($this->entity->urlInfo('collection'));