AbstractPreprocessEntityEvent.php in Hook Event Dispatcher 8.2
File
modules/preprocess_event_dispatcher/src/Event/AbstractPreprocessEntityEvent.php
View source
<?php
namespace Drupal\preprocess_event_dispatcher\Event;
use function array_filter;
use function implode;
abstract class AbstractPreprocessEntityEvent extends AbstractPreprocessEvent implements PreprocessEntityEventInterface {
public static function name(string $bundle = '', string $viewMode = '') : string {
return implode('.', array_filter([
parent::name(),
$bundle,
$viewMode,
]));
}
}