You are here

public function EckEntityEventVariables::getViewMode in Hook Event Dispatcher 8

Get the view mode.

Return value

string View mode.

Overrides AbstractEntityEventVariables::getViewMode

File

src/Event/Preprocess/Variables/EckEntityEventVariables.php, line 37

Class

EckEntityEventVariables
Class EckEntityEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

public function getViewMode() {
  return $this->variables['elements']['#view_mode'];
}