abstract protected function ContentEntityStorageBase::doSaveFieldItems in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doSaveFieldItems()
- 9 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 - Performs storage-specific saving of the entity.
- 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 - Writes entity field values to the storage.
- SqlContentEntityStorage::doSaveFieldItems in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php - Writes entity field values to the storage.
File
- core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php, line 738
Class
- ContentEntityStorageBase
- Base class for content entity storage handlers.
Namespace
Drupal\Core\EntityCode
protected abstract function doSaveFieldItems(ContentEntityInterface $entity, array $names = []);