You are here

abstract class AbstractPreprocessEntityEvent in Hook Event Dispatcher 8

Class AbstractPreprocessEntityEvent.

Hierarchy

Expanded class hierarchy of AbstractPreprocessEntityEvent

File

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

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess
View source
abstract class AbstractPreprocessEntityEvent extends AbstractPreprocessEvent implements PreprocessEntityEventInterface {

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

  /**
   * {@inheritdoc}
   */
  public function getVariables() {
    return $this->variables;
  }

}

Members

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