You are here

interface PreprocessEntityEventInterface in Hook Event Dispatcher 8

Interface PreprocessEntityEventInterface.

Hierarchy

Expanded class hierarchy of PreprocessEntityEventInterface

All classes that implement PreprocessEntityEventInterface

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

File

src/Event/Preprocess/PreprocessEntityEventInterface.php, line 8

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess
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($bundle = '', $viewMode = '');

  /**
   * Get the Entity variables.
   *
   * @return \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\AbstractEntityEventVariables
   *   Entity variables.
   */
  public function getVariables();

}

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 constant
PreprocessEventInterface::getHook public static function Get the hook name. 18