Mercurial > hg > isophonics-drupal-site
diff core/modules/taxonomy/src/VocabularyForm.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/taxonomy/src/VocabularyForm.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/taxonomy/src/VocabularyForm.php Thu May 09 15:33:08 2019 +0100 @@ -122,18 +122,18 @@ $vocabulary->set('name', trim($vocabulary->label())); $status = $vocabulary->save(); - $edit_link = $this->entity->link($this->t('Edit')); + $edit_link = $this->entity->toLink($this->t('Edit'), 'edit-form')->toString(); switch ($status) { case SAVED_NEW: $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')); + $form_state->setRedirectUrl($vocabulary->toUrl('overview-form')); break; case SAVED_UPDATED: $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')); + $form_state->setRedirectUrl($vocabulary->toUrl('collection')); break; }