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

Breadcrumb

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

function TaxonomyHooks::localTasksAlter

Implements hook_local_tasks_alter().

@todo Evaluate removing as part of https://www.drupal.org/node/2358923.

File

core/modules/taxonomy/src/Hook/TaxonomyHooks.php, line 85

Class

TaxonomyHooks
Hook implementations for taxonomy.

Namespace

Drupal\taxonomy\Hook

Code

public function localTasksAlter(&$local_tasks) : void {
    $local_task_key = 'config_translation.local_tasks:entity.taxonomy_vocabulary.config_translation_overview';
    if (isset($local_tasks[$local_task_key])) {
        // The config_translation module expects the base route to be
        // entity.taxonomy_vocabulary.edit_form like it is for other configuration
        // entities. Taxonomy uses the overview_form as the base route.
        $local_tasks[$local_task_key]['base_route'] = 'entity.taxonomy_vocabulary.overview_form';
    }
}

API Navigation

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