You are here

public function DsFieldBase::viewMode in Display Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/DsField/DsFieldBase.php \Drupal\ds\Plugin\DsField\DsFieldBase::viewMode()
  2. 8.2 src/Plugin/DsField/DsFieldBase.php \Drupal\ds\Plugin\DsField\DsFieldBase::viewMode()

Gets the view mode.

Return value

string The configured view mode.

Overrides DsFieldInterface::viewMode

3 calls to DsFieldBase::viewMode()
BookNavigation::isAllowed in src/Plugin/DsField/Book/BookNavigation.php
Returns if the field is allowed on the field UI screen.
DsFieldBase::isAllowed in src/Plugin/DsField/DsFieldBase.php
Returns if the field is allowed on the field UI screen.
SwitchField::build in modules/ds_extras/src/Plugin/DsField/SwitchField.php
Renders a field.

File

src/Plugin/DsField/DsFieldBase.php, line 142

Class

DsFieldBase
Base class for all the ds plugins.

Namespace

Drupal\ds\Plugin\DsField

Code

public function viewMode() {
  return $this->configuration['view_mode'];
}