public function TaxonomyController::vocabularyTitle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Controller/TaxonomyController.php \Drupal\taxonomy\Controller\TaxonomyController::vocabularyTitle()
Route title callback.
Parameters
\Drupal\taxonomy\VocabularyInterface $taxonomy_vocabulary: The vocabulary.
Return value
string The vocabulary label as a render array.
2 string references to 'TaxonomyController::vocabularyTitle'
- taxonomy.routing.yml in core/
modules/ taxonomy/ taxonomy.routing.yml - core/modules/taxonomy/taxonomy.routing.yml
- taxonomy.routing.yml in core/
modules/ taxonomy/ taxonomy.routing.yml - core/modules/taxonomy/taxonomy.routing.yml
File
- core/
modules/ taxonomy/ src/ Controller/ TaxonomyController.php, line 43 - Contains \Drupal\taxonomy\Controller\TaxonomyController.
Class
- TaxonomyController
- Provides route responses for taxonomy.module.
Namespace
Drupal\taxonomy\ControllerCode
public function vocabularyTitle(VocabularyInterface $taxonomy_vocabulary) {
return [
'#markup' => $taxonomy_vocabulary
->label(),
'#allowed_tags' => Xss::getHtmlTagList(),
];
}