protected function FieldConfigStorageBase::mapToStorageRecord
protected FieldConfigStorageBase::mapToStorageRecord(EntityInterface $entity)
Maps from an entity object to the storage record.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity object.
Return value
array The record to store.
Overrides ConfigEntityStorage::mapToStorageRecord
File
- core/lib/Drupal/Core/Field/FieldConfigStorageBase.php, line 34
Class
- FieldConfigStorageBase
- Base storage class for field config entities.
Namespace
Drupal\Core\FieldCode
protected function mapToStorageRecord(EntityInterface $entity) { $record = parent::mapToStorageRecord($entity); $class = $this->fieldTypeManager->getPluginClass($record['field_type']); $record['settings'] = $class::fieldSettingsToConfigData($record['settings']); return $record; }
© 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::mapToStorageRecord/8.1.x