function pathauto_local_tasks_alter in Pathauto 8
Implements hook_local_tasks_alter().
File
- ./
pathauto.module, line 179 - pathauto Pathauto: Automatically generates aliases for content
Code
function pathauto_local_tasks_alter(&$local_tasks) {
if (version_compare(\Drupal::VERSION, '8.8', '<')) {
foreach ($local_tasks as &$local_task) {
if (isset($local_task['provider']) && $local_task['provider'] === 'pathauto') {
$local_task['base_route'] = 'path.admin_overview';
}
}
}
}