abstract class AbstractPreprocessEvent in Hook Event Dispatcher 8
Class AbstractPreprocessEvent.
Plugin annotation
@SuppressWarnings(PHPMD . NumberOfChildren);
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\AbstractPreprocessEvent extends \Symfony\Component\EventDispatcher\Event implements PreprocessEventInterface
Expanded class hierarchy of AbstractPreprocessEvent
4 files declare their use of AbstractPreprocessEvent
- EntityEventVariablesTest.php in tests/
src/ Unit/ Preprocess/ EntityEventVariablesTest.php - ExamplePreprocessEvent.php in src/
Example/ preprocess_example_module/ src/ Event/ ExamplePreprocessEvent.php - FakePreprocessEvent.php in tests/
src/ Unit/ Preprocess/ Helpers/ FakePreprocessEvent.php - OtherEventVariablesTest.php in tests/
src/ Unit/ Preprocess/ OtherEventVariablesTest.php
File
- src/
Event/ Preprocess/ AbstractPreprocessEvent.php, line 13
Namespace
Drupal\hook_event_dispatcher\Event\PreprocessView source
abstract class AbstractPreprocessEvent extends Event implements PreprocessEventInterface {
/**
* Event variables.
*
* @var \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\AbstractEventVariables
*/
protected $variables;
/**
* PreprocessEvent constructor.
*
* @param \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\AbstractEventVariables $variables
* The variables.
*/
public function __construct(AbstractEventVariables $variables) {
$this->variables = $variables;
}
/**
* {@inheritdoc}
*/
public static function name() {
return static::DISPATCH_NAME_PREFIX . static::getHook();
}
/**
* {@inheritdoc}
*/
public function getVariables() {
return $this->variables;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractPreprocessEvent:: |
protected | property | Event variables. | |
AbstractPreprocessEvent:: |
public | function |
Get the variables. Overrides PreprocessEventInterface:: |
1 |
AbstractPreprocessEvent:: |
public static | function |
Get the Event name. Overrides PreprocessEventInterface:: |
1 |
AbstractPreprocessEvent:: |
public | function | PreprocessEvent constructor. | |
PreprocessEventInterface:: |
constant | |||
PreprocessEventInterface:: |
public static | function | Get the hook name. | 18 |