You are here

public static function ExampleFieldEventSubscribers::getSubscribedEvents in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 examples/ExampleFieldEventSubscribers.php \Drupal\hook_event_dispatcher\ExampleFieldEventSubscribers::getSubscribedEvents()

File

examples/ExampleFieldEventSubscribers.php, line 55

Class

ExampleFieldEventSubscribers
Class ExampleFieldEventSubscribers.

Namespace

Drupal\hook_event_dispatcher

Code

public static function getSubscribedEvents() : array {
  return [
    HookEventDispatcherInterface::WIDGET_FORM_ALTER => 'alterWidgetForm',
    'hook_event_dispatcher.widget_string_textfield.alter' => 'alterWidgetStringTextField',
  ];
}