interface PreprocessEntityEventInterface in Hook Event Dispatcher 8
Interface PreprocessEntityEventInterface.
Hierarchy
- interface \Drupal\hook_event_dispatcher\Event\Preprocess\PreprocessEventInterface
- interface \Drupal\hook_event_dispatcher\Event\Preprocess\PreprocessEntityEventInterface
Expanded class hierarchy of PreprocessEntityEventInterface
All classes that implement PreprocessEntityEventInterface
2 files declare their use of PreprocessEntityEventInterface
- EntityEventVariablesTest.php in tests/
src/ Unit/ Preprocess/ EntityEventVariablesTest.php - PreprocessEventService.php in src/
Service/ PreprocessEventService.php
File
- src/
Event/ Preprocess/ PreprocessEntityEventInterface.php, line 8
Namespace
Drupal\hook_event_dispatcher\Event\PreprocessView source
interface PreprocessEntityEventInterface extends PreprocessEventInterface {
/**
* Get the event name, with optional bundle and view mode.
*
* @param string $bundle
* Optional bundle.
* @param string $viewMode
* Optional view mode.
*
* @return string
* Event name.
*/
public static function name($bundle = '', $viewMode = '');
/**
* Get the Entity variables.
*
* @return \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\AbstractEntityEventVariables
* Entity variables.
*/
public function getVariables();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PreprocessEntityEventInterface:: |
public | function |
Get the Entity variables. Overrides PreprocessEventInterface:: |
|
PreprocessEntityEventInterface:: |
public static | function |
Get the event name, with optional bundle and view mode. Overrides PreprocessEventInterface:: |
|
PreprocessEventInterface:: |
constant | |||
PreprocessEventInterface:: |
public static | function | Get the hook name. | 18 |