function FieldItemBase::getSettings

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getSettings()
  2. 10 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getSettings()
  3. 11.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getSettings()

Returns the array of field settings.

Return value

array The array of settings.

10 calls to FieldItemBase::getSettings()
CommentItem::fieldSettingsForm in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Returns a form for the field-level settings.
DecimalItem::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
Returns a form for the field-level settings.
DecimalItem::storageSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
Returns a form for the storage-level settings.
FileItem::fieldSettingsForm in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Returns a form for the field-level settings.
FileItem::getUploadLocation in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Determines the URI for a file field.

... See full list

File

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

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.