class FieldEventVariables in Hook Event Dispatcher 8
Class FieldEventVariables.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\AbstractEventVariables
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\FieldEventVariables
Expanded class hierarchy of FieldEventVariables
2 files declare their use of FieldEventVariables
- FieldPreprocessEventFactory.php in src/
Event/ Preprocess/ Factory/ FieldPreprocessEventFactory.php - OtherEventVariablesTest.php in tests/
src/ Unit/ Preprocess/ OtherEventVariablesTest.php
File
- src/
Event/ Preprocess/ Variables/ FieldEventVariables.php, line 8
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\VariablesView source
class FieldEventVariables extends AbstractEventVariables {
/**
* Get the element array by reference.
*
* @return array
* Element array reference.
*/
public function &getElement() {
return $this->variables['element'];
}
/**
* Get the items array by reference.
*
* @return array
* Items array reference.
*/
public function &getItems() {
return $this->variables['items'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractEventVariables:: |
protected | property | Variables. | |
AbstractEventVariables:: |
public | function | Get a variable with a given name, return default if it does not exist. | 1 |
AbstractEventVariables:: |
public | function | Get a variable with a given name by reference. | 1 |
AbstractEventVariables:: |
public | function | Remove a given variable. | 1 |
AbstractEventVariables:: |
public | function | Set a variable to a given value. | 1 |
AbstractEventVariables:: |
public | function | Event Variables constructor. | |
FieldEventVariables:: |
public | function | Get the element array by reference. | |
FieldEventVariables:: |
public | function | Get the items array by reference. |