function ContentEntityStorageBase::doSaveFieldItems
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doSaveFieldItems()
- 10 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doSaveFieldItems()
- 11.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doSaveFieldItems()
Writes entity field values to the storage.
This method is responsible for allocating entity and revision identifiers and updating the entity object with their values.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity object.
string[] $names: (optional) The name of the fields to be written to the storage. If an empty value is passed all field values are saved.
2 calls to ContentEntityStorageBase::doSaveFieldItems()
- ContentEntityStorageBase::doSave in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - ContentEntityStorageBase::invokeFieldPostSave in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Invokes the post save method on the Field objects within an entity.
2 methods override ContentEntityStorageBase::doSaveFieldItems()
- ContentEntityNullStorage::doSaveFieldItems in core/
lib/ Drupal/ Core/ Entity/ ContentEntityNullStorage.php - SqlContentEntityStorage::doSaveFieldItems in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php, line 735
Class
- ContentEntityStorageBase
- Base class for content entity storage handlers.
Namespace
Drupal\Core\EntityCode
protected abstract function doSaveFieldItems(ContentEntityInterface $entity, array $names = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.