You are here

public function EntityViewEvent::getViewMode in Hook Event Dispatcher 8

Get the view mode.

Return value

string The view mode.

File

src/Event/Entity/EntityViewEvent.php, line 94

Class

EntityViewEvent
Class EntityViewEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Entity

Code

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