You are here

protected function FormatterBase::getFieldSettings in Drupal 9

Same name and namespace in other branches
  1. 8 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();
}