function FieldStorageConfig::getSettings

Same name in other branches
  1. 8.9.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getSettings()
  2. 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getSettings()
  3. 11.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getSettings()

Overrides FieldStorageDefinitionInterface::getSettings

1 call to FieldStorageConfig::getSettings()
FieldStorageConfig::getSetting in core/modules/field/src/Entity/FieldStorageConfig.php
Returns the value of a given storage setting.

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 541

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getSettings() {
    // @todo FieldTypePluginManager maintains its own static cache. However, do
    //   some CPU and memory profiling to see if it's worth statically caching
    //   $field_type_info, or the default field storage and field settings,
    //   within $this.
    $field_type_manager = \Drupal::service('plugin.manager.field.field_type');
    $settings = $field_type_manager->getDefaultStorageSettings($this->getType());
    return $this->settings + $settings;
}

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