You are here

public static function ParagraphPreprocessEvent::getHook in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Event/ParagraphPreprocessEvent.php \Drupal\preprocess_event_dispatcher\Event\ParagraphPreprocessEvent::getHook()

Get the hook name.

Return value

string Hook name.

Overrides PreprocessEventInterface::getHook

1 call to ParagraphPreprocessEvent::getHook()
ParagraphPreprocessEventFactory::getEventHook in modules/preprocess_event_dispatcher/src/Factory/ParagraphPreprocessEventFactory.php
Get the Event hook name.

File

modules/preprocess_event_dispatcher/src/Event/ParagraphPreprocessEvent.php, line 13

Class

ParagraphPreprocessEvent
Class ParagraphPreprocessEvent.

Namespace

Drupal\preprocess_event_dispatcher\Event

Code

public static function getHook() : string {
  return 'paragraph';
}