function FieldItemBase::getSettings

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getSettings()
  2. 8.9.x 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.

7 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.
NumericItemBase::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
Returns a form for the field-level settings.
NumericItemBase::getConstraints in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
Gets a list of validation constraints.

... See full list

File

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

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.