AbstractPreprocessEvent.php in Hook Event Dispatcher 8
File
src/Event/Preprocess/AbstractPreprocessEvent.php
View source
<?php
namespace Drupal\hook_event_dispatcher\Event\Preprocess;
use Drupal\hook_event_dispatcher\Event\Preprocess\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() {
return static::DISPATCH_NAME_PREFIX . static::getHook();
}
public function getVariables() {
return $this->variables;
}
}