You are here

protected function FieldItemBase::getSetting in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getSetting()

Returns the value of a field setting.

Parameters

string $setting_name: The setting name.

Return value

mixed The setting value.

19 calls to FieldItemBase::getSetting()
BooleanItem::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
Returns a form for the field-level settings.
BooleanItem::getPossibleOptions in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
Returns an array of possible values with labels for display.
CommentItem::storageSettingsForm in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Returns a form for the storage-level settings.
DateTimeItem::storageSettingsForm in core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php
Returns a form for the storage-level settings.
DecimalItem::preSave in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
Defines custom presave behavior for field values.

... See full list

File

core/lib/Drupal/Core/Field/FieldItemBase.php, line 97

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

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