public static function ExampleFieldEventSubscribers::getSubscribedEvents in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x examples/ExampleFieldEventSubscribers.php \Drupal\hook_event_dispatcher\ExampleFieldEventSubscribers::getSubscribedEvents()
File
- examples/
ExampleFieldEventSubscribers.php, line 55
Class
- ExampleFieldEventSubscribers
- Class ExampleFieldEventSubscribers.
Namespace
Drupal\hook_event_dispatcherCode
public static function getSubscribedEvents() : array {
return [
HookEventDispatcherInterface::WIDGET_FORM_ALTER => 'alterWidgetForm',
'hook_event_dispatcher.widget_string_textfield.alter' => 'alterWidgetStringTextField',
];
}