function field_ui_local_tasks_alter

Same name in other branches
  1. 9 core/modules/field_ui/field_ui.module \field_ui_local_tasks_alter()
  2. 8.9.x core/modules/field_ui/field_ui.module \field_ui_local_tasks_alter()
  3. 11.x core/modules/field_ui/field_ui.module \field_ui_local_tasks_alter()

Implements hook_local_tasks_alter().

File

core/modules/field_ui/field_ui.module, line 217

Code

function field_ui_local_tasks_alter(&$local_tasks) {
    $container = \Drupal::getContainer();
    $local_task = FieldUiLocalTask::create($container, 'field_ui.fields');
    $local_task->alterLocalTasks($local_tasks);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.