Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. VocabularyRouteProvider.php

function 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.

1 call to VocabularyRouteProvider::getResetPageRoute()
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 38

Class

VocabularyRouteProvider

Namespace

Drupal\taxonomy\Entity\Routing

Code

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('_entity_access', 'taxonomy_vocabulary.reset all weights');
    $route->setOption('_admin_route', TRUE);
    $route->setOption('parameters', [
        'taxonomy_vocabulary' => [
            'with_config_overrides' => TRUE,
        ],
    ]);
    return $route;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal