protected function FieldConfigStorageBase::mapFromStorageRecords
protected FieldConfigStorageBase::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/lib/Drupal/Core/Field/FieldConfigStorageBase.php, line 23
Class
- FieldConfigStorageBase
- Base storage class for field config entities.
Namespace
Drupal\Core\FieldCode
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