public function AbstractFormEvent::__construct in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Form/AbstractFormEvent.php \Drupal\core_event_dispatcher\Event\Form\AbstractFormEvent::__construct()
AbstractFormEvent constructor.
Parameters
array $form: Nested array of form elements that comprise the form.
\Drupal\Core\Form\FormStateInterface $formState: The current state of the form. The arguments that \Drupal::formBuilder()->getForm() was originally called with are available in the array $form_state->getBuildInfo()['args'].
string $formId: String representing the name of the form itself. Typically this is the name of the function that generated the form.
1 call to AbstractFormEvent::__construct()
- FormBaseAlterEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Form/ FormBaseAlterEvent.php - FormBaseAlterEvent constructor.
1 method overrides AbstractFormEvent::__construct()
- FormBaseAlterEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Form/ FormBaseAlterEvent.php - FormBaseAlterEvent constructor.
File
- modules/
core_event_dispatcher/ src/ Event/ Form/ AbstractFormEvent.php, line 46
Class
- AbstractFormEvent
- Class AbstractFormEvent.
Namespace
Drupal\core_event_dispatcher\Event\FormCode
public function __construct(array &$form, FormStateInterface $formState, string $formId) {
$this->form =& $form;
$this->formState = $formState;
$this->formId = $formId;
}