function FieldUiHooks::localTasksAlter
Implements hook_local_tasks_alter().
File
-
core/
modules/ field_ui/ src/ Hook/ FieldUiHooks.php, line 224
Class
- FieldUiHooks
- Hook implementations for field_ui.
Namespace
Drupal\field_ui\HookCode
public function localTasksAlter(&$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.