ConfigEntityStorage::mapToStorageRecord

protected ConfigEntityStorage::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.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 306

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

1
2
3
protected function mapToStorageRecord(EntityInterface $entity) {
  return $entity->toArray();
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.