function FieldItemBase::getSettings

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

3 calls to FieldItemBase::getSettings()
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.
FileItem::getUploadValidators in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Retrieves the upload validators for a file field.

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.