AbstractPreprocessEntityEvent.php in Hook Event Dispatcher 8
File
src/Event/Preprocess/AbstractPreprocessEntityEvent.php
View source
<?php
namespace Drupal\hook_event_dispatcher\Event\Preprocess;
abstract class AbstractPreprocessEntityEvent extends AbstractPreprocessEvent implements PreprocessEntityEventInterface {
public static function name($bundle = '', $viewMode = '') {
return \implode('.', \array_filter([
parent::name(),
$bundle,
$viewMode,
]));
}
public function getVariables() {
return $this->variables;
}
}