You are here

function better_local_tasks_theme_registry_alter in Better Local Tasks 8

Implements hook_theme_registry_alter().

Template overrides for local tasks.

File

./better_local_tasks.module, line 67
This is the module to make fancier local tasks.

Code

function better_local_tasks_theme_registry_alter(&$theme_registry) {
  $admin_context = \Drupal::service('router.admin_context');
  if (!$admin_context
    ->isAdminRoute()) {
    $theme_registry['block__local_tasks_block']['path'] = drupal_get_path('module', 'better_local_tasks') . '/templates/block';
    $theme_registry['menu_local_tasks']['path'] = drupal_get_path('module', 'better_local_tasks') . '/templates/navigation';
  }
}