X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield_ui%2Fsrc%2FForm%2FFieldConfigEditForm.php;h=af6de89f6b41951b104b075691849109e6d6b05b;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=2895479b3667c4a36c5b3067863411b1189911af;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/field_ui/src/Form/FieldConfigEditForm.php b/web/core/modules/field_ui/src/Form/FieldConfigEditForm.php index 2895479b3..af6de89f6 100644 --- a/web/core/modules/field_ui/src/Form/FieldConfigEditForm.php +++ b/web/core/modules/field_ui/src/Form/FieldConfigEditForm.php @@ -12,6 +12,8 @@ use Drupal\field_ui\FieldUI; /** * Provides a form for the field settings form. + * + * @internal */ class FieldConfigEditForm extends EntityForm { @@ -75,7 +77,7 @@ class FieldConfigEditForm extends EntityForm { $ids = (object) [ 'entity_type' => $this->entity->getTargetEntityTypeId(), 'bundle' => $this->entity->getTargetBundle(), - 'entity_id' => NULL + 'entity_id' => NULL, ]; $form['#entity'] = _field_create_entity_from_ids($ids); $items = $form['#entity']->get($this->entity->getName()); @@ -175,7 +177,7 @@ class FieldConfigEditForm extends EntityForm { public function save(array $form, FormStateInterface $form_state) { $this->entity->save(); - drupal_set_message($this->t('Saved %label configuration.', ['%label' => $this->entity->getLabel()])); + $this->messenger()->addStatus($this->t('Saved %label configuration.', ['%label' => $this->entity->getLabel()])); $request = $this->getRequest(); if (($destinations = $request->query->get('destinations')) && $next_destination = FieldUI::getNextDestination($destinations)) {