Mercurial > hg > isophonics-drupal-site
comparison core/modules/taxonomy/src/Controller/TaxonomyController.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
20 * | 20 * |
21 * @return array | 21 * @return array |
22 * The taxonomy term add form. | 22 * The taxonomy term add form. |
23 */ | 23 */ |
24 public function addForm(VocabularyInterface $taxonomy_vocabulary) { | 24 public function addForm(VocabularyInterface $taxonomy_vocabulary) { |
25 $term = $this->entityManager()->getStorage('taxonomy_term')->create(['vid' => $taxonomy_vocabulary->id()]); | 25 $term = $this->entityTypeManager()->getStorage('taxonomy_term')->create(['vid' => $taxonomy_vocabulary->id()]); |
26 return $this->entityFormBuilder()->getForm($term); | 26 return $this->entityFormBuilder()->getForm($term); |
27 } | 27 } |
28 | 28 |
29 /** | 29 /** |
30 * Route title callback. | 30 * Route title callback. |