field_ui_local_tasks_alter

field_ui_local_tasks_alter(&$local_tasks)

Implements hook_local_tasks_alter().

File

core/modules/field_ui/field_ui.module, line 235
Allows administrators to attach custom fields to fieldable types.

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);
}
doc_Drupal
2016-10-29 09:13:02
Comments
Leave a Comment

Please login to continue.