AbstractPreprocessEvent.php in Hook Event Dispatcher 3.x
File
modules/preprocess_event_dispatcher/src/Event/AbstractPreprocessEvent.php
View source
<?php
namespace Drupal\preprocess_event_dispatcher\Event;
use Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables;
use Symfony\Component\EventDispatcher\Event;
abstract class AbstractPreprocessEvent extends Event implements PreprocessEventInterface {
protected $variables;
public function __construct(AbstractEventVariables $variables) {
$this->variables = $variables;
}
public static function name() : string {
return static::DISPATCH_NAME_PREFIX . static::getHook();
}
public function getVariables() : AbstractEventVariables {
return $this->variables;
}
}