You are here

interface PreprocessEntityEventInterface in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Event/PreprocessEntityEventInterface.php \Drupal\preprocess_event_dispatcher\Event\PreprocessEntityEventInterface

Interface PreprocessEntityEventInterface.

Hierarchy

Expanded class hierarchy of PreprocessEntityEventInterface

All classes that implement PreprocessEntityEventInterface

2 files declare their use of PreprocessEntityEventInterface
EntityEventVariablesTest.php in modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventVariablesTest.php
PreprocessEventService.php in modules/preprocess_event_dispatcher/src/Service/PreprocessEventService.php

File

modules/preprocess_event_dispatcher/src/Event/PreprocessEntityEventInterface.php, line 10

Namespace

Drupal\preprocess_event_dispatcher\Event
View source
interface PreprocessEntityEventInterface extends PreprocessEventInterface {

  /**
   * Get the event name, with optional bundle and view mode.
   *
   * @param string $bundle
   *   Optional bundle.
   * @param string $viewMode
   *   Optional view mode.
   *
   * @return string
   *   Event name.
   */
  public static function name(string $bundle = '', string $viewMode = '') : string;

  /**
   * Get the Entity variables.
   *
   * @return \Drupal\preprocess_event_dispatcher\Variables\AbstractEntityEventVariables
   *   Entity variables.
   */
  public function getVariables() : AbstractEventVariables;

}

Members

Namesort descending Modifiers Type Description Overrides
PreprocessEntityEventInterface::getVariables public function Get the Entity variables. Overrides PreprocessEventInterface::getVariables
PreprocessEntityEventInterface::name public static function Get the event name, with optional bundle and view mode. Overrides PreprocessEventInterface::name
PreprocessEventInterface::DISPATCH_NAME_PREFIX public constant
PreprocessEventInterface::getHook public static function Get the hook name. 18