class FormIdAlterEvent in Hook Event Dispatcher 8
Class FormIdAlterEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Form\BaseFormEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\hook_event_dispatcher\Event\Form\FormIdAlterEvent
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\FormView source
class FormIdAlterEvent extends BaseFormEvent {
/**
* {@inheritdoc}
*/
public function getDispatcherType() {
return 'hook_event_dispatcher.form_' . $this
->getFormId() . '.alter';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseFormEvent:: |
protected | property | The form. | |
BaseFormEvent:: |
protected | property | The form id. | |
BaseFormEvent:: |
protected | property | The form state. | |
BaseFormEvent:: |
public | function | Get the form. | |
BaseFormEvent:: |
public | function | Get the form id. | |
BaseFormEvent:: |
public | function | Get the form state. | |
BaseFormEvent:: |
public | function | Set the form. | |
BaseFormEvent:: |
public | function | BaseFormEvent constructor. | 1 |
FormIdAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |