You are here

public function EckEntityEventVariables::getViewMode in Hook Event Dispatcher 3.x

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

Get the view mode.

Return value

string View mode.

Overrides AbstractEntityEventVariables::getViewMode

File

modules/preprocess_event_dispatcher/src/Variables/EckEntityEventVariables.php, line 40

Class

EckEntityEventVariables
Class EckEntityEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

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