You are here

class FormIdAlterEvent in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/src/Event/Form/FormIdAlterEvent.php \Drupal\core_event_dispatcher\Event\Form\FormIdAlterEvent

Class FormIdAlterEvent.

Hierarchy

Expanded class hierarchy of FormIdAlterEvent

4 files declare their use of FormIdAlterEvent
AbstractFormEntityDisplayEditAlterEventSubscriberTestCase.php in modules/field_event_dispatcher/tests/src/Unit/Field/AbstractFormEntityDisplayEditAlterEventSubscriberTestCase.php
core_event_dispatcher.module in modules/core_event_dispatcher/core_event_dispatcher.module
Core event dispatcher submodule.
ExampleFormEventSubscribers.php in examples/ExampleFormEventSubscribers.php
FormEntityDisplayEditAlterEventSubscriber.php in modules/field_event_dispatcher/src/EventSubscriber/Form/FormEntityDisplayEditAlterEventSubscriber.php

File

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

Namespace

Drupal\core_event_dispatcher\Event\Form
View source
class FormIdAlterEvent extends AbstractFormEvent {

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() : string {
    return 'hook_event_dispatcher.form_' . $this
      ->getFormId() . '.alter';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractFormEvent::$form private property The form.
AbstractFormEvent::$formId private property The form id.
AbstractFormEvent::$formState private property The form state.
AbstractFormEvent::getForm public function Get the form.
AbstractFormEvent::getFormId public function Get the form id.
AbstractFormEvent::getFormState public function Get the form state.
AbstractFormEvent::__construct public function AbstractFormEvent constructor. 1
FormIdAlterEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType