public function AbstractEntityEventVariables::getViewMode 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::getViewMode()
Get the view mode.
Return value
string View mode.
1 method overrides AbstractEntityEventVariables::getViewMode()
- EckEntityEventVariables::getViewMode in modules/
preprocess_event_dispatcher/ src/ Variables/ EckEntityEventVariables.php - Get the view mode.
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ AbstractEntityEventVariables.php, line 46
Class
- AbstractEntityEventVariables
- Class EntityEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function getViewMode() : string {
return $this
->get('view_mode', '');
}