comparison core/modules/taxonomy/src/Controller/TaxonomyController.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
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.