You are here

public static function AbstractPreprocessEntityEvent::name in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Event/AbstractPreprocessEntityEvent.php \Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEntityEvent::name()

Get the Event name.

Return value

string Event name.

Overrides AbstractPreprocessEvent::name

File

modules/preprocess_event_dispatcher/src/Event/AbstractPreprocessEntityEvent.php, line 16

Class

AbstractPreprocessEntityEvent
Class AbstractPreprocessEntityEvent.

Namespace

Drupal\preprocess_event_dispatcher\Event

Code

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