function devel_local_tasks_alter

Same name in other branches
  1. 4.x devel.module \devel_local_tasks_alter()

Implements hook_local_tasks_alter().

File

./devel.module, line 123

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' => [],
        ];
    }
}