public function ExtraFieldDisplayBase::setViewMode in Extra Field 8.2
Same name and namespace in other branches
- 8 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 72
Class
- ExtraFieldDisplayBase
- Base class for Extra field Display plugins.
Namespace
Drupal\extra_field\PluginCode
public function setViewMode($viewMode) {
$this->viewMode = $viewMode;
}