function VocabularyRouteProvider::getOverviewPageRoute

Same name in other branches
  1. 9 core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php \Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider::getOverviewPageRoute()
  2. 8.9.x core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php \Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider::getOverviewPageRoute()
  3. 11.x core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php \Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider::getOverviewPageRoute()

Gets the overview page route.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

\Symfony\Component\Routing\Route|null The generated route, if available.

1 call to VocabularyRouteProvider::getOverviewPageRoute()
VocabularyRouteProvider::getRoutes in core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php
Provides routes for entities.

File

core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php, line 62

Class

VocabularyRouteProvider

Namespace

Drupal\taxonomy\Entity\Routing

Code

protected function getOverviewPageRoute(EntityTypeInterface $entity_type) {
    $route = new Route('/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/overview');
    $route->setDefault('_title_callback', '\\Drupal\\Core\\Entity\\Controller\\EntityController::title');
    $route->setDefault('_form', 'Drupal\\taxonomy\\Form\\OverviewTerms');
    $route->setRequirement('_entity_access', 'taxonomy_vocabulary.access taxonomy overview');
    $route->setOption('_admin_route', TRUE);
    $route->setOption('parameters', [
        'taxonomy_vocabulary' => [
            'with_config_overrides' => TRUE,
        ],
    ]);
    return $route;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.