You are here

class FormIdAlterEvent in Hook Event Dispatcher 8

Class FormIdAlterEvent.

Hierarchy

Expanded class hierarchy of FormIdAlterEvent

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

File

src/Event/Form/FormIdAlterEvent.php, line 8

Namespace

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

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() {
    return 'hook_event_dispatcher.form_' . $this
      ->getFormId() . '.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
FormIdAlterEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType