You are here

public function EntityReferenceBrowserTableWidget::__construct in Entity Browser - Table Layout 8

File

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

Class

EntityReferenceBrowserTableWidget
Plugin implementation of the 'entity_reference_browser_table_widget' widget.

Namespace

Drupal\entity_browser_table\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, array $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityTypeManagerInterface $entity_type_manager, FieldWidgetDisplayManager $field_display_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user, MessengerInterface $messenger, LanguageManagerInterface $languageManager, EntityTypeBundleInfo $bundleInfo, ModerationInformation $moderationInformation = NULL) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings, $entity_type_manager, $field_display_manager, $module_handler, $current_user, $messenger);
  $this->currentLanguage = $languageManager
    ->getCurrentLanguage()
    ->getId();
  $this->entityBundleInfo = $bundleInfo;
  $this->moderationInfo = $moderationInformation;
}