You are here

function devel_local_tasks_alter in Devel 8

Same name and namespace in other branches
  1. 8.3 devel.module \devel_local_tasks_alter()
  2. 8.2 devel.module \devel_local_tasks_alter()
  3. 4.x devel.module \devel_local_tasks_alter()

Implements hook_local_tasks_alter().

File

./devel.module, line 131
This module holds functions useful for Drupal development. Please contribute!

Code

function devel_local_tasks_alter(&$local_tasks) {
  if (\Drupal::moduleHandler()
    ->moduleExists('toolbar')) {
    $local_tasks['devel.toolbar.settings_form'] = [
      'title' => 'Toolbar Settings',
      'base_route' => 'devel.admin_settings',
      'route_name' => 'devel.toolbar.settings_form',
      'class' => LocalTaskDefault::class,
      'options' => [],
    ];
  }
}