1.20.x entity.controller.inc | public EntityStorageControllerInterface::save(EntityInterface $entity) |
Saves the entity permanently.
Parameters
EntityInterface $entity: The entity to save.
Return value
int: Either SAVED_NEW or SAVED_UPDATED depending on the operation performed.
Throws
EntityStorageException In case of failures, an exception is thrown.
File
- modules/
entity/ entity.controller.inc, line 575 - Entity API controller classes and interface.
Class
- EntityStorageControllerInterface
- Defines a common interface for entity storage controllers.
Code
public function save(EntityInterface $entity);