You are here

public function EntityFormField::__construct in Views Entity Form Field 8

Constructs a new EditQuantity object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Field\WidgetPluginManager $field_widget_manager: The field widget plugin manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/EntityFormField.php, line 102

Class

EntityFormField
Defines a views form element for an entity field widget.

Namespace

Drupal\views_entity_form_field\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, WidgetPluginManager $field_widget_manager, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->fieldWidgetManager = $field_widget_manager;
  $this->languageManager = $language_manager;
}