You are here

function workspace_menu_local_tasks_alter in Workspace 8

Implements hook_menu_local_tasks_alter().

File

./workspace.module, line 201

Code

function workspace_menu_local_tasks_alter(&$data, $route_name) {
  if ($route_name == 'entity.replication.collection') {
    foreach ($data['tabs'][0] as $href => $tab_data) {
      if (strpos($href, 'field_ui.fields:') === 0) {
        unset($data['tabs'][0][$href]);
      }
    }
  }
}