You are here

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;

/**
 * Class AbstractPreprocessEntityEvent.
 */
abstract class AbstractPreprocessEntityEvent extends AbstractPreprocessEvent implements PreprocessEntityEventInterface {

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

}

Classes

Namesort descending Description
AbstractPreprocessEntityEvent Class AbstractPreprocessEntityEvent.