function FormatterBase::getFieldSettings
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::getFieldSettings()
- 10 core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::getFieldSettings()
- 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\FieldCode
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.