You are here

public function ExtraFieldDisplayBase::setViewMode in Extra Field 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ExtraFieldDisplayBase.php \Drupal\extra_field\Plugin\ExtraFieldDisplayBase::setViewMode()

Stores the entity view mode.

Parameters

string $viewMode: The view mode the entity is rendered in. As provided by hook_entity_view().

Overrides ExtraFieldDisplayInterface::setViewMode

File

src/Plugin/ExtraFieldDisplayBase.php, line 68

Class

ExtraFieldDisplayBase
Base class for Extra field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

public function setViewMode($viewMode) {
  $this->viewMode = $viewMode;
}