public function EntityViewEvent::getViewMode in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Entity/EntityViewEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityViewEvent::getViewMode()
Get the view mode.
Return value
string The view mode.
File
- modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityViewEvent.php, line 87
Class
- EntityViewEvent
- Class EntityViewEvent.
Namespace
Drupal\core_event_dispatcher\Event\EntityCode
public function getViewMode() : string {
return $this->viewMode;
}