Mercurial > hg > isophonics-drupal-site
diff core/modules/taxonomy/src/VocabularyForm.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/taxonomy/src/VocabularyForm.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/taxonomy/src/VocabularyForm.php Thu Feb 28 13:21:36 2019 +0000 @@ -19,7 +19,7 @@ /** * The vocabulary storage. * - * @var \Drupal\taxonomy\VocabularyStorageInterface. + * @var \Drupal\taxonomy\VocabularyStorageInterface */ protected $vocabularyStorage; @@ -89,7 +89,7 @@ if ($this->moduleHandler->moduleExists('language')) { $form['default_terms_language'] = [ '#type' => 'details', - '#title' => $this->t('Terms language'), + '#title' => $this->t('Term language'), '#open' => TRUE, ]; $form['default_terms_language']['default_language'] = [ @@ -125,13 +125,13 @@ $edit_link = $this->entity->link($this->t('Edit')); switch ($status) { case SAVED_NEW: - drupal_set_message($this->t('Created new vocabulary %name.', ['%name' => $vocabulary->label()])); + $this->messenger()->addStatus($this->t('Created new vocabulary %name.', ['%name' => $vocabulary->label()])); $this->logger('taxonomy')->notice('Created new vocabulary %name.', ['%name' => $vocabulary->label(), 'link' => $edit_link]); $form_state->setRedirectUrl($vocabulary->urlInfo('overview-form')); break; case SAVED_UPDATED: - drupal_set_message($this->t('Updated vocabulary %name.', ['%name' => $vocabulary->label()])); + $this->messenger()->addStatus($this->t('Updated vocabulary %name.', ['%name' => $vocabulary->label()])); $this->logger('taxonomy')->notice('Updated vocabulary %name.', ['%name' => $vocabulary->label(), 'link' => $edit_link]); $form_state->setRedirectUrl($vocabulary->urlInfo('collection')); break;