You are here

final class CommentPreprocessEvent in Hook Event Dispatcher 8

Class CommentPreprocessEvent.

Hierarchy

Expanded class hierarchy of CommentPreprocessEvent

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

File

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

Namespace

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

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

}

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