You are here

protected function ConfigEntityStorage::mapToStorageRecord in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::mapToStorageRecord()

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.

3 calls to ConfigEntityStorage::mapToStorageRecord()
ConfigEntityStorage::doSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Performs storage-specific saving of the entity.
FieldConfigStorageBase::mapToStorageRecord in core/lib/Drupal/Core/Field/FieldConfigStorageBase.php
Maps from an entity object to the storage record.
FieldStorageConfigStorage::mapToStorageRecord in core/modules/field/src/FieldStorageConfigStorage.php
Maps from an entity object to the storage record.
2 methods override ConfigEntityStorage::mapToStorageRecord()
FieldConfigStorageBase::mapToStorageRecord in core/lib/Drupal/Core/Field/FieldConfigStorageBase.php
Maps from an entity object to the storage record.
FieldStorageConfigStorage::mapToStorageRecord in core/modules/field/src/FieldStorageConfigStorage.php
Maps from an entity object to the storage record.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 311
Contains \Drupal\Core\Config\Entity\ConfigEntityStorage.

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

protected function mapToStorageRecord(EntityInterface $entity) {
  return $entity
    ->toArray();
}