You are here

public static function EntityReferenceBrowserTableWidget::create in Entity Browser - Table Layout 8

1 call to EntityReferenceBrowserTableWidget::create()
EntityReferenceBrowserTableWidgetTests::setUp in tests/src/Kernel/EntityReferenceBrowserTableWidgetTests.php

File

src/Plugin/Field/FieldWidget/EntityReferenceBrowserTableWidget.php, line 49

Class

EntityReferenceBrowserTableWidget
Plugin implementation of the 'entity_reference_browser_table_widget' widget.

Namespace

Drupal\entity_browser_table\Plugin\Field\FieldWidget

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['third_party_settings'], $container
    ->get('entity_type.manager'), $container
    ->get('plugin.manager.entity_browser.field_widget_display'), $container
    ->get('module_handler'), $container
    ->get('current_user'), $container
    ->get('messenger'), $container
    ->get('language_manager'), $container
    ->get('entity_type.bundle.info'), $container
    ->has('content_moderation.moderation_information') ? $container
    ->get('content_moderation.moderation_information') : NULL);
}