public function FieldWidgetThirdPartySettingsFormEvent::__construct in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/field_event_dispatcher/src/Event/Field/FieldWidgetThirdPartySettingsFormEvent.php \Drupal\field_event_dispatcher\Event\Field\FieldWidgetThirdPartySettingsFormEvent::__construct()
FieldWidgetThirdPartySettingsFormEvent constructor.
Parameters
\Drupal\Core\Field\WidgetInterface $plugin: The instantiated field widget plugin.
\Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition: The field definition.
string $formMode: The entity form mode.
array $form: The (entire) configuration form array.
\Drupal\Core\Form\FormStateInterface $formState: The form state.
File
- modules/
field_event_dispatcher/ src/ Event/ Field/ FieldWidgetThirdPartySettingsFormEvent.php, line 43
Class
- FieldWidgetThirdPartySettingsFormEvent
- Class FieldWidgetThirdPartySettingsFormEvent.
Namespace
Drupal\field_event_dispatcher\Event\FieldCode
public function __construct(WidgetInterface $plugin, FieldDefinitionInterface $fieldDefinition, string $formMode, array $form, FormStateInterface $formState) {
$this->plugin = $plugin;
$this->fieldDefinition = $fieldDefinition;
$this->formMode = $formMode;
$this->form = $form;
$this->formState = $formState;
}