function VocabularyRouteProvider::getCollectionRoute
File
-
core/
modules/ taxonomy/ src/ Entity/ Routing/ VocabularyRouteProvider.php, line 32
Class
Namespace
Drupal\taxonomy\Entity\RoutingCode
protected function getCollectionRoute(EntityTypeInterface $entity_type) {
if ($route = parent::getCollectionRoute($entity_type)) {
$route->setRequirement('_permission', 'access taxonomy overview+administer taxonomy');
return $route;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.