You are here

public function ExtraFieldDisplayBase::getViewMode in Extra Field 8.2

Same name and namespace in other branches
  1. 8 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 80

Class

ExtraFieldDisplayBase
Base class for Extra field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

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