W3cubDocs

/Drupal 8

protected function ContentEntityNullStorage::doSaveFieldItems

protected ContentEntityNullStorage::doSaveFieldItems(ContentEntityInterface $entity, array $names = [])

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.

Overrides ContentEntityStorageBase::doSaveFieldItems

File

core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 88

Class

ContentEntityNullStorage
Defines a null entity storage.

Namespace

Drupal\Core\Entity

Code

protected function doSaveFieldItems(ContentEntityInterface $entity, array $names = []) {
}

© 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!Entity!ContentEntityNullStorage.php/function/ContentEntityNullStorage::doSaveFieldItems/8.1.x