class FormIdAlterEvent in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Form/FormIdAlterEvent.php \Drupal\core_event_dispatcher\Event\Form\FormIdAlterEvent
Class FormIdAlterEvent.
Hierarchy
- class \Drupal\core_event_dispatcher\Event\Form\AbstractFormEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\core_event_dispatcher\Event\Form\FormIdAlterEvent
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\FormView source
class FormIdAlterEvent extends AbstractFormEvent {
/**
* {@inheritdoc}
*/
public function getDispatcherType() : string {
return 'hook_event_dispatcher.form_' . $this
->getFormId() . '.alter';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractFormEvent:: |
private | property | The form. | |
AbstractFormEvent:: |
private | property | The form id. | |
AbstractFormEvent:: |
private | property | The form state. | |
AbstractFormEvent:: |
public | function | Get the form. | |
AbstractFormEvent:: |
public | function | Get the form id. | |
AbstractFormEvent:: |
public | function | Get the form state. | |
AbstractFormEvent:: |
public | function | AbstractFormEvent constructor. | 1 |
FormIdAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |