You are here

public function AbstractEntityEventVariables::getViewMode in Hook Event Dispatcher 8

Get the view mode.

Return value

string View mode.

1 method overrides AbstractEntityEventVariables::getViewMode()
EckEntityEventVariables::getViewMode in src/Event/Preprocess/Variables/EckEntityEventVariables.php
Get the view mode.

File

src/Event/Preprocess/Variables/AbstractEntityEventVariables.php, line 44

Class

AbstractEntityEventVariables
Class EntityEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

public function getViewMode() {
  return $this
    ->get('view_mode');
}