You are here

protected function FormatterBase::getFieldSetting in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

11 calls to FormatterBase::getFieldSetting()
BooleanFormatter::getOutputFormats in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/BooleanFormatter.php
Gets the available format options.
CommentDefaultFormatter::viewElements in core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
Builds a renderable array for a field value.
DateTimeCustomFormatter::viewElements in core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php
Builds a renderable array for a field value.
DateTimeDefaultFormatter::viewElements in core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeDefaultFormatter.php
Builds a renderable array for a field value.
DateTimePlainFormatter::formatDate in core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimePlainFormatter.php
Creates a formatted date value as a string.

... See full list

File

core/lib/Drupal/Core/Field/FormatterBase.php, line 154
Contains \Drupal\Core\Field\FormatterBase.

Class

FormatterBase
Base class for 'Field formatter' plugin implementations.

Namespace

Drupal\Core\Field

Code

protected function getFieldSetting($setting_name) {
  return $this->fieldDefinition
    ->getSetting($setting_name);
}