class EckEntityEventVariables in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Variables/EckEntityEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\EckEntityEventVariables
Class EckEntityEventVariables.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables
- class \Drupal\preprocess_event_dispatcher\Variables\AbstractEntityEventVariables
- class \Drupal\preprocess_event_dispatcher\Variables\EckEntityEventVariables
- class \Drupal\preprocess_event_dispatcher\Variables\AbstractEntityEventVariables
Expanded class hierarchy of EckEntityEventVariables
2 files declare their use of EckEntityEventVariables
- EckEntityPreprocessEventFactory.php in modules/
preprocess_event_dispatcher/ src/ Factory/ EckEntityPreprocessEventFactory.php - EntityEventVariablesTest.php in modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ EntityEventVariablesTest.php
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ EckEntityEventVariables.php, line 11
Namespace
Drupal\preprocess_event_dispatcher\VariablesView source
class EckEntityEventVariables extends AbstractEntityEventVariables {
/**
* Get the EckEntity.
*
* @return \Drupal\eck\EckEntityInterface
* EckEntity.
*/
public function getEckEntity() : EckEntityInterface {
return $this->variables['eck_entity'];
}
/**
* {@inheritdoc}
*/
public function getEntity() : EntityInterface {
return $this
->getEckEntity();
}
/**
* {@inheritdoc}
*/
public function getEntityBundle() : string {
return $this->variables['bundle'];
}
/**
* {@inheritdoc}
*/
public function getViewMode() : string {
return $this->variables['elements']['#view_mode'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractEntityEventVariables:: |
public | function | Get the Entity type. | 1 |
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. | |
EckEntityEventVariables:: |
public | function | Get the EckEntity. | |
EckEntityEventVariables:: |
public | function |
Get the Entity. Overrides AbstractEntityEventVariables:: |
|
EckEntityEventVariables:: |
public | function |
Get the Entity bundle. Overrides AbstractEntityEventVariables:: |
|
EckEntityEventVariables:: |
public | function |
Get the view mode. Overrides AbstractEntityEventVariables:: |