FieldStorageConfigStorage::mapFromStorageRecords

protected FieldStorageConfigStorage::mapFromStorageRecords(array $records)

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 152

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);
}
doc_Drupal
2016-10-29 09:12:39
Comments
Leave a Comment

Please login to continue.