public function BaseFormEvent::__construct in Hook Event Dispatcher 8
BaseFormEvent 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 BaseFormEvent::__construct()
- FormBaseAlterEvent::__construct in src/
Event/ Form/ FormBaseAlterEvent.php - FormBaseAlterEvent constructor.
1 method overrides BaseFormEvent::__construct()
- FormBaseAlterEvent::__construct in src/
Event/ Form/ FormBaseAlterEvent.php - FormBaseAlterEvent constructor.
File
- src/
Event/ Form/ BaseFormEvent.php, line 46
Class
- BaseFormEvent
- Class BaseFormEvent.
Namespace
Drupal\hook_event_dispatcher\Event\FormCode
public function __construct(array &$form, FormStateInterface $formState, $formId) {
$this->form =& $form;
$this->formState = $formState;
$this->formId = $formId;
}