class FormAlterEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/src/Event/Form/FormAlterEvent.php \Drupal\core_event_dispatcher\Event\Form\FormAlterEvent
Class FormAlterEvent.
Hierarchy
- class \Drupal\core_event_dispatcher\Event\Form\AbstractFormEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\core_event_dispatcher\Event\Form\FormAlterEvent
Expanded class hierarchy of FormAlterEvent
3 files declare their use of FormAlterEvent
- core_event_dispatcher.module in modules/
core_event_dispatcher/ core_event_dispatcher.module - Core event dispatcher submodule.
- ExampleFormEventSubscribers.php in examples/
ExampleFormEventSubscribers.php - FormEventTest.php in modules/
core_event_dispatcher/ tests/ src/ Unit/ Form/ FormEventTest.php
File
- modules/
core_event_dispatcher/ src/ Event/ Form/ FormAlterEvent.php, line 10
Namespace
Drupal\core_event_dispatcher\Event\FormView source
class FormAlterEvent extends AbstractFormEvent {
/**
* {@inheritdoc}
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::FORM_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 |
FormAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |