You are here

class FormAlterEvent in Hook Event Dispatcher 8

Class FormAlterEvent.

Hierarchy

Expanded class hierarchy of FormAlterEvent

2 files declare their use of FormAlterEvent
ExampleFormEventSubscribers.php in src/Example/ExampleFormEventSubscribers.php
hook_event_dispatcher.module in ./hook_event_dispatcher.module
Hook event dispatcher module.

File

src/Event/Form/FormAlterEvent.php, line 10

Namespace

Drupal\hook_event_dispatcher\Event\Form
View source
class FormAlterEvent extends BaseFormEvent {

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() {
    return HookEventDispatcherInterface::FORM_ALTER;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseFormEvent::$form protected property The form.
BaseFormEvent::$formId protected property The form id.
BaseFormEvent::$formState protected property The form state.
BaseFormEvent::getForm public function Get the form.
BaseFormEvent::getFormId public function Get the form id.
BaseFormEvent::getFormState public function Get the form state.
BaseFormEvent::setForm Deprecated public function Set the form.
BaseFormEvent::__construct public function BaseFormEvent constructor. 1
FormAlterEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType