class FormEventVariables in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Variables/FormEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\FormEventVariables
Class FormEventVariables.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables
- class \Drupal\preprocess_event_dispatcher\Variables\FormEventVariables
Expanded class hierarchy of FormEventVariables
2 files declare their use of FormEventVariables
- FormPreprocessEventFactory.php in modules/
preprocess_event_dispatcher/ src/ Factory/ FormPreprocessEventFactory.php - OtherEventVariablesTest.php in modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ OtherEventVariablesTest.php
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ FormEventVariables.php, line 8
Namespace
Drupal\preprocess_event_dispatcher\VariablesView source
class FormEventVariables extends AbstractEventVariables {
/**
* Get the element array by reference.
*
* @return array
* Element array reference.
*/
public function &getElement() : array {
return $this->variables['element'];
}
}
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. | |
FormEventVariables:: |
public | function | Get the element array by reference. |