protected FieldConfigStorageBase::mapFromStorageRecords(array $records)
Maps from storage records to entity objects.
array $records: Associative array of query results, keyed on the entity ID.
\Drupal\Core\Entity\EntityInterface[] An array of entity objects implementing the EntityInterface.
Overrides EntityStorageBase::mapFromStorageRecords
protected function mapFromStorageRecords(array $records) { foreach ($records as &$record) { $class = $this->fieldTypeManager->getPluginClass($record['field_type']); $record['settings'] = $class::fieldSettingsFromConfigData($record['settings']); } return parent::mapFromStorageRecords($records); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!FieldConfigStorageBase.php/function/FieldConfigStorageBase::mapFromStorageRecords/8.1.x