public function AbstractEntityEventVariables::getEntityType in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Variables/AbstractEntityEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\AbstractEntityEventVariables::getEntityType()
Get the Entity type.
Return value
string Entity type.
1 method overrides AbstractEntityEventVariables::getEntityType()
- CommentEventVariables::getEntityType in modules/
preprocess_event_dispatcher/ src/ Variables/ CommentEventVariables.php - Get the Entity type.
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ AbstractEntityEventVariables.php, line 26
Class
- AbstractEntityEventVariables
- Class EntityEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function getEntityType() : string {
return $this
->get('theme_hook_original', '');
}