Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::getFieldSetting()
- 9 core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::getFieldSetting()
Returns the value of a field setting.
Parameters
string $setting_name: The setting name.
Return value
mixed The setting value.
3 calls to FormatterBase::getFieldSetting()
- DateTimeFormatterBase::setTimeZone in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeFormatterBase.php - Sets the proper time zone on a DrupalDateTime object for the current user.
- EntityReferenceFormatterBase::prepareView in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ EntityReferenceFormatterBase.php - Loads the entities referenced in that field across all the entities being viewed.
- ImageFormatterBase::getEntitiesToView in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatterBase.php - Returns the referenced entities for display.
File
- core/
lib/ Drupal/ Core/ Field/ FormatterBase.php, line 169
Class
- FormatterBase
- Base class for 'Field formatter' plugin implementations.
Namespace
Drupal\Core\FieldCode
protected function getFieldSetting($setting_name) {
return $this->fieldDefinition
->getSetting($setting_name);
}