public function AbstractEntityEventVariables::getEntityBundle in Hook Event Dispatcher 8
Get the Entity bundle.
Return value
string Entity bundle.
1 method overrides AbstractEntityEventVariables::getEntityBundle()
- EckEntityEventVariables::getEntityBundle in src/
Event/ Preprocess/ Variables/ EckEntityEventVariables.php - Get the Entity bundle.
File
- src/
Event/ Preprocess/ Variables/ AbstractEntityEventVariables.php, line 34
Class
- AbstractEntityEventVariables
- Class EntityEventVariables.
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\VariablesCode
public function getEntityBundle() {
return $this
->getEntity()
->bundle();
}