protected function VocabularyRouteProvider::getResetPageRoute in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php \Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider::getResetPageRoute()
- 9 core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php \Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider::getResetPageRoute()
Gets the reset page route.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
Return value
\Symfony\Component\Routing\Route|null The generated route, if available.
File
- core/
modules/ taxonomy/ src/ Entity/ Routing/ VocabularyRouteProvider.php, line 48
Class
Namespace
Drupal\taxonomy\Entity\RoutingCode
protected function getResetPageRoute(EntityTypeInterface $entity_type) {
$route = new Route('/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/reset');
$route
->setDefault('_entity_form', 'taxonomy_vocabulary.reset');
$route
->setDefault('_title', 'Reset');
$route
->setRequirement('_permission', $entity_type
->getAdminPermission());
$route
->setOption('_admin_route', TRUE);
$route
->setOption('parameters', [
'taxonomy_vocabulary' => [
'with_config_overrides' => TRUE,
],
]);
return $route;
}