You are here

protected function FieldStorageConfigStorage::mapFromStorageRecords in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/src/FieldStorageConfigStorage.php \Drupal\field\FieldStorageConfigStorage::mapFromStorageRecords()

Maps from storage records to entity objects.

Parameters

array $records: Associative array of query results, keyed on the entity ID.

Return value

\Drupal\Core\Entity\EntityInterface[] An array of entity objects implementing the EntityInterface.

Overrides EntityStorageBase::mapFromStorageRecords

File

core/modules/field/src/FieldStorageConfigStorage.php, line 157
Contains \Drupal\field\FieldStorageConfigStorage.

Class

FieldStorageConfigStorage
Controller class for "field storage" configuration entities.

Namespace

Drupal\field

Code

protected function mapFromStorageRecords(array $records) {
  foreach ($records as &$record) {
    $class = $this->fieldTypeManager
      ->getPluginClass($record['type']);
    $record['settings'] = $class::storageSettingsFromConfigData($record['settings']);
  }
  return parent::mapFromStorageRecords($records);
}