You are here

public function AbstractEntityEventVariables::getViewMode in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/Variables/AbstractEntityEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\AbstractEntityEventVariables::getViewMode()

Get the view mode.

Return value

string View mode.

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

File

modules/preprocess_event_dispatcher/src/Variables/AbstractEntityEventVariables.php, line 46

Class

AbstractEntityEventVariables
Class EntityEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

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