function FieldItemBase::getSetting
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getSetting()
- 8.9.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getSetting()
- 10 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.
15 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.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php, line 111
Class
- FieldItemBase
- An entity field item.
Namespace
Drupal\Core\FieldCode
protected function getSetting($setting_name) {
return $this->getFieldDefinition()
->getSetting($setting_name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.