You are here

public function ExtraFieldDisplayBase::getViewMode in Extra Field 8

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

Returns the entity view mode object of the field's host entity.

Return value

string The view mode the field is being rendered in.

Overrides ExtraFieldDisplayInterface::getViewMode

File

src/Plugin/ExtraFieldDisplayBase.php, line 75

Class

ExtraFieldDisplayBase
Base class for Extra field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

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