public static function ExampleEventSubscriber::getSubscribedEvents in Webform Node Element 8
Set the events that we want to subscribe to.
Tell Drupal that we're interested in subscribing to the webform_node_element prerender event.
File
- modules/
webform_node_element_example/ src/ EventSubscriber/ ExampleEventSubscriber.php, line 26
Class
- ExampleEventSubscriber
- Class ExampleEventSubscriber.
Namespace
Drupal\webform_node_element_example\EventSubscriberCode
public static function getSubscribedEvents() {
$events[WebformNodeElementPreRender::PRERENDER][] = [
'onWebformNodeElementPreRender',
800,
];
return $events;
}