protected function 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\EntityCode
protected function mapToStorageRecord(EntityInterface $entity) { return $entity->toArray(); }
© 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!Config!Entity!ConfigEntityStorage.php/function/ConfigEntityStorage::mapToStorageRecord/8.1.x