diff --git a/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php b/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php index d4c392c..dce6ccb 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php @@ -1,5 +1,4 @@ moduleHandler = $module_handler; + } + + /** + * {@inheritdoc} + */ + public static function create(ContainerInterface $container) { + return new static( + $container->get('plugin.manager.entity'), + $container->get('module_handler') + ); + } + + /** * The field type manager. * * @var \Drupal\Core\Entity\Field\FieldTypePluginManager @@ -142,6 +172,8 @@ public function buildForm(array $form, array &$form_state, $entity_type = NULL, 'href' => "$admin_field_path/delete", 'attributes' => array('title' => t('Delete instance.')), ); + // Allow altering the operations on this entity listing. + $this->moduleHandler->alter('entity_operation', $links, $instance); $table[$name]['operations']['data'] = array( '#type' => 'operations', '#links' => $links, @@ -174,7 +206,7 @@ public function buildForm(array $form, array &$form_state, $entity_type = NULL, '#title_display' => 'invisible', '#size' => 15, '#description' => t('Label'), - '#prefix' => '