FormatterBase::$viewMode

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::viewMode
  2. 8.9.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::viewMode
  3. 11.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::viewMode

The view mode.

Type: string

File

core/lib/Drupal/Core/Field/FormatterBase.php, line 46

Class

FormatterBase
Base class for 'Field formatter' plugin implementations.

Namespace

Drupal\Core\Field

Code

protected $viewMode;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.