function StubEntityStorageBase::doSave
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Entity/StubEntityStorageBase.php \Drupal\Tests\Core\Entity\StubEntityStorageBase::doSave()
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.
Overrides EntityStorageBase::doSave
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ StubEntityStorageBase.php, line 47
Class
- StubEntityStorageBase
- A stub base entity storage for testing purposes.
Namespace
Drupal\Tests\Core\EntityCode
protected function doSave($id, EntityInterface $entity) : bool {
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.