You are here

public function EntityBuildDefaultsAlterEvent::getViewMode in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/src/Event/Entity/EntityBuildDefaultsAlterEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityBuildDefaultsAlterEvent::getViewMode()

Get the view mode.

Return value

string The view mode.

File

modules/core_event_dispatcher/src/Event/Entity/EntityBuildDefaultsAlterEvent.php, line 66

Class

EntityBuildDefaultsAlterEvent
Class EntityBuildDefaultsAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

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