You are here

public function EntityViewEvent::getViewMode in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x 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\Entity

Code

public function getViewMode() : string {
  return $this->viewMode;
}