You are here

final class NodePreprocessEvent in Hook Event Dispatcher 8

Class NodePreprocessEvent.

Hierarchy

Expanded class hierarchy of NodePreprocessEvent

3 files declare their use of NodePreprocessEvent
EntityEventTest.php in tests/src/Unit/Preprocess/EntityEventTest.php
EntityEventVariablesTest.php in tests/src/Unit/Preprocess/EntityEventVariablesTest.php
NodePreprocessEventFactory.php in src/Event/Preprocess/Factory/NodePreprocessEventFactory.php

File

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

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess
View source
final class NodePreprocessEvent extends AbstractPreprocessEntityEvent {

  /**
   * {@inheritdoc}
   */
  public static function getHook() {
    return 'node';
  }

}

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