protected function ContentEntityStorage::entityToData in MongoDB 8
Add extra values from the entity to the data to be saved.
Parameters
ContentEntityInterface $entity:
array $data: Three keys:
- bundle: the entity bundle.
- translations: the list of entity languages
- values: the actual entity values
1 call to ContentEntityStorage::entityToData()
- ContentEntityStorage::getDataToSave in src/
Entity/ ContentEntityStorage.php - Collect the translations of an entity for saving.
1 method overrides ContentEntityStorage::entityToData()
- MongodbUserStorage::entityToData in mongodb_user/
src/ MongodbUserStorage.php - Add extra values from the entity to the data to be saved.
File
- src/
Entity/ ContentEntityStorage.php, line 291 - Contains Drupal\mongodb\Entity\ContentEntityStorage.
Class
Namespace
Drupal\mongodb\EntityCode
protected function entityToData(ContentEntityInterface $entity, &$data) {
}