You are here

public function ExtraFieldDisplayInterface::setViewMode in Extra Field 8

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

Stores the entity view mode.

Parameters

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

1 method overrides ExtraFieldDisplayInterface::setViewMode()
ExtraFieldDisplayBase::setViewMode in src/Plugin/ExtraFieldDisplayBase.php
Stores the entity view mode.

File

src/Plugin/ExtraFieldDisplayInterface.php, line 65

Class

ExtraFieldDisplayInterface
Defines an interface for Extra Field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

public function setViewMode($viewMode);