diff --git a/html_head.info.yml b/html_head.info.yml index cd1075e..3340481 100644 --- a/html_head.info.yml +++ b/html_head.info.yml @@ -5,5 +5,6 @@ type: module configure: html_head.admin.header version: '8.x-1.0' core: '8.x' -project: 'html_ead' +core_version_requirement: ^8 || ^9 +project: 'html_head' diff --git a/src/Form/HeaderForm.php b/src/Form/HeaderForm.php index 5a43705..1b5db5f 100644 --- a/src/Form/HeaderForm.php +++ b/src/Form/HeaderForm.php @@ -53,7 +53,7 @@ class HeaderForm extends ConfigFormBase { ->set('html_header', $values['html_header']) ->save(); - \Drupal::messenger()->addMessage($this->t('Your Settings have been saved.'), 'status'); + $this->messenger()->addStatus($this->t('Your Settings have been saved.')); } }