WebformElementInfoAlterEvent.php in Hook Event Dispatcher 3.x
File
modules/webform_event_dispatcher/src/Event/WebformElement/WebformElementInfoAlterEvent.php
View source
<?php
namespace Drupal\webform_event_dispatcher\Event\WebformElement;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
class WebformElementInfoAlterEvent extends Event implements EventInterface {
private $definitions;
public function __construct(array &$definitions) {
$this->definitions =& $definitions;
}
public function &getDefinitions() : array {
return $this->definitions;
}
public function getDispatcherType() : string {
return HookEventDispatcherInterface::WEBFORM_ELEMENT_INFO_ALTER;
}
}