function FieldConfigStorageBase::mapToStorageRecord
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldConfigStorageBase.php \Drupal\Core\Field\FieldConfigStorageBase::mapToStorageRecord()
- 8.9.x core/lib/Drupal/Core/Field/FieldConfigStorageBase.php \Drupal\Core\Field\FieldConfigStorageBase::mapToStorageRecord()
- 10 core/lib/Drupal/Core/Field/FieldConfigStorageBase.php \Drupal\Core\Field\FieldConfigStorageBase::mapToStorageRecord()
Overrides ConfigEntityStorage::mapToStorageRecord
File
-
core/
lib/ Drupal/ Core/ Field/ FieldConfigStorageBase.php, line 41
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.