abstract class AbstractPreprocessEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Event/AbstractPreprocessEvent.php \Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent
Class AbstractPreprocessEvent.
Plugin annotation
@SuppressWarnings(PHPMD . NumberOfChildren);
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent extends \Symfony\Component\EventDispatcher\Event implements PreprocessEventInterface
Expanded class hierarchy of AbstractPreprocessEvent
23 files declare their use of AbstractPreprocessEvent
- BlockPreprocessEventFactory.php in modules/
preprocess_event_dispatcher/ src/ Factory/ BlockPreprocessEventFactory.php - CommentPreprocessEventFactory.php in modules/
preprocess_event_dispatcher/ src/ Factory/ CommentPreprocessEventFactory.php - EckEntityPreprocessEventFactory.php in modules/
preprocess_event_dispatcher/ src/ Factory/ EckEntityPreprocessEventFactory.php - EntityEventVariablesTest.php in modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ EntityEventVariablesTest.php - ExamplePreprocessEvent.php in examples/
preprocess_example_module/ src/ Event/ ExamplePreprocessEvent.php
File
- modules/
preprocess_event_dispatcher/ src/ Event/ AbstractPreprocessEvent.php, line 13
Namespace
Drupal\preprocess_event_dispatcher\EventView source
abstract class AbstractPreprocessEvent extends Event implements PreprocessEventInterface {
/**
* Event variables.
*
* @var \Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables
*/
protected $variables;
/**
* PreprocessEvent constructor.
*
* @param \Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables $variables
* The variables.
*/
public function __construct(AbstractEventVariables $variables) {
$this->variables = $variables;
}
/**
* {@inheritdoc}
*/
public static function name() : string {
return static::DISPATCH_NAME_PREFIX . static::getHook();
}
/**
* {@inheritdoc}
*/
public function getVariables() : AbstractEventVariables {
return $this->variables;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractPreprocessEvent:: |
protected | property | Event variables. | |
AbstractPreprocessEvent:: |
public | function |
Get the variables. Overrides PreprocessEventInterface:: |
|
AbstractPreprocessEvent:: |
public static | function |
Get the Event name. Overrides PreprocessEventInterface:: |
1 |
AbstractPreprocessEvent:: |
public | function | PreprocessEvent constructor. | |
PreprocessEventInterface:: |
public | constant | ||
PreprocessEventInterface:: |
public static | function | Get the hook name. | 18 |