X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fnode%2Fsrc%2FNodeTypeForm.php;fp=web%2Fcore%2Fmodules%2Fnode%2Fsrc%2FNodeTypeForm.php;h=23fbe34652cef66270335bf64338b42006e99211;hp=9eec40c700879a7cf55ac33ec4898c6556c2d07f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/node/src/NodeTypeForm.php b/web/core/modules/node/src/NodeTypeForm.php index 9eec40c70..23fbe3465 100644 --- a/web/core/modules/node/src/NodeTypeForm.php +++ b/web/core/modules/node/src/NodeTypeForm.php @@ -124,7 +124,7 @@ class NodeTypeForm extends BundleEntityFormBase { DRUPAL_REQUIRED => t('Required'), ], ]; - $form['submission']['help'] = [ + $form['submission']['help'] = [ '#type' => 'textarea', '#title' => t('Explanation or submission guidelines'), '#default_value' => $type->getHelp(), @@ -225,11 +225,11 @@ class NodeTypeForm extends BundleEntityFormBase { $t_args = ['%name' => $type->label()]; if ($status == SAVED_UPDATED) { - drupal_set_message(t('The content type %name has been updated.', $t_args)); + $this->messenger()->addStatus($this->t('The content type %name has been updated.', $t_args)); } elseif ($status == SAVED_NEW) { node_add_body_field($type); - drupal_set_message(t('The content type %name has been added.', $t_args)); + $this->messenger()->addStatus($this->t('The content type %name has been added.', $t_args)); $context = array_merge($t_args, ['link' => $type->link($this->t('View'), 'collection')]); $this->logger('node')->notice('Added content type %name.', $context); }