You are here

public static function AbstractPreprocessEntityEvent::name in Hook Event Dispatcher 8

Get the Event name.

Return value

string Event name.

Overrides AbstractPreprocessEvent::name

File

src/Event/Preprocess/AbstractPreprocessEntityEvent.php, line 13

Class

AbstractPreprocessEntityEvent
Class AbstractPreprocessEntityEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess

Code

public static function name($bundle = '', $viewMode = '') {
  return \implode('.', \array_filter([
    parent::name(),
    $bundle,
    $viewMode,
  ]));
}