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\HookCode
public function localTasksAlter(&$local_tasks) {
$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';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.