TaxonomyController::vocabularyTitle

public TaxonomyController::vocabularyTitle(VocabularyInterface $taxonomy_vocabulary)

Route title callback.

Parameters

\Drupal\taxonomy\VocabularyInterface $taxonomy_vocabulary: The vocabulary.

Return value

string The vocabulary label as a render array.

File

core/modules/taxonomy/src/Controller/TaxonomyController.php, line 38

Class

TaxonomyController
Provides route responses for taxonomy.module.

Namespace

Drupal\taxonomy\Controller

Code

public function vocabularyTitle(VocabularyInterface $taxonomy_vocabulary) {
  return ['#markup' => $taxonomy_vocabulary->label(), '#allowed_tags' => Xss::getHtmlTagList()];
}
doc_Drupal
2016-10-29 09:46:29
Comments
Leave a Comment

Please login to continue.