prefetch_cache_test.module in Content locking (anti-concurrent editing) 8
Same filename and directory in other branches
File
tests/modules/prefetch_cache_test/prefetch_cache_test.moduleView source
<?php
/**
* Implements hook_menu_local_tasks_alter().
*/
function prefetch_cache_test_menu_local_tasks_alter(&$data, $route_name) {
foreach ($data as &$tabs) {
foreach ($tabs as &$tab) {
foreach ($tab as $local_task_route_name => &$local_task_tab) {
if ($local_task_route_name != $route_name) {
$local_task_tab['#link']['localized_options']['attributes']['class'][] = 'prefetch-cache';
}
}
}
}
}
Functions
Name | Description |
---|---|
prefetch_cache_test_menu_local_tasks_alter | Implements hook_menu_local_tasks_alter(). |