EntityStorageBase::doSave

abstract protected EntityStorageBase::doSave($id, EntityInterface $entity)

Performs storage-specific saving of the entity.

Parameters

int|string $id: The original entity ID.

\Drupal\Core\Entity\EntityInterface $entity: The entity to save.

Return value

bool|int If the record insert or update failed, returns FALSE. If it succeeded, returns SAVED_NEW or SAVED_UPDATED, depending on the operation performed.

File

core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 452

Class

EntityStorageBase
A base entity storage class.

Namespace

Drupal\Core\Entity

Code

abstract protected function doSave($id, EntityInterface $entity);
doc_Drupal
2016-10-29 09:07:39
Comments
Leave a Comment

Please login to continue.