function FormatterBase::getFieldSettings

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::getFieldSettings()
  2. 10 core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::getFieldSettings()
  3. 11.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::getFieldSettings()

Returns the array of field settings.

Return value

array The array of settings.

2 calls to FormatterBase::getFieldSettings()
CommentDefaultFormatter::viewElements in core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
Builds a renderable array for a field value.
NumericFormatterBase::viewElements in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/NumericFormatterBase.php
Builds a renderable array for a field value.

File

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

Class

FormatterBase
Base class for 'Field formatter' plugin implementations.

Namespace

Drupal\Core\Field

Code

protected function getFieldSettings() {
    return $this->fieldDefinition
        ->getSettings();
}

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