if ($overview_page_route =
$this->
getOverviewPageRoute($entity_type)) { $collection->
add("entity.taxonomy_vocabulary.overview_form",
$overview_page_route);
} return $collection;
} /**
* {@inheritdoc}
*/
protected function getCollectionRoute(EntityTypeInterface
$entity_type) { if ($route = parent::
getCollectionRoute($entity_type)) { $route->
setRequirement('_permission', 'access taxonomy overview+administer taxonomy'
);
return $route;
} } /**
* Gets the reset page route.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The entity type.
*
* @return \Symfony\Component\Routing\Route|null
* The generated route, if available.
*/