entityManager()->getStorage('taxonomy_term')->create(array('vid' => $taxonomy_vocabulary->id())); return $this->entityFormBuilder()->getForm($term); } /** * Route title callback. * * @param \Drupal\dr8_zth\BlogTypeInterface $blog_type * The blog type instance. * * @return string * The blog type label as a render array. */ public function typeTitle(BlogTypeInterface $blog_type) { return ['#markup' => $blog_type->label(), '#allowed_tags' => Xss::getHtmlTagList()]; } /** * Route title callback. * * @param \Drupal\dr8_zth\BlogInterface $blog * The blog instance. * * @return array * The blog label as a render array. */ public function blogTitle(BlogInterface $blog) { $ret = ['#markup' => $blog->label(), '#allowed_tags' => Xss::getHtmlTagList()]; ksm($ret); return $ret; } }