You are here

abstract class AbstractPreprocessEntityEvent 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

Class AbstractPreprocessEntityEvent.

Hierarchy

Expanded class hierarchy of AbstractPreprocessEntityEvent

File

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

Namespace

Drupal\preprocess_event_dispatcher\Event
View source
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,
    ]));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractPreprocessEntityEvent::name public static function Get the Event name. Overrides AbstractPreprocessEvent::name
AbstractPreprocessEvent::$variables protected property Event variables.
AbstractPreprocessEvent::getVariables public function Get the variables. Overrides PreprocessEventInterface::getVariables
AbstractPreprocessEvent::__construct public function PreprocessEvent constructor.
PreprocessEventInterface::DISPATCH_NAME_PREFIX public constant
PreprocessEventInterface::getHook public static function Get the hook name. 18