public function EntityAPIControllerInterface::save in Entity API 7
Permanently saves the given entity.
In case of failures, an exception is thrown.
Parameters
$entity: The entity to save.
Return value
int SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.
1 method overrides EntityAPIControllerInterface::save()
- EntityAPIController::save in includes/
entity.controller.inc - Implements EntityAPIControllerInterface.
File
- includes/
entity.controller.inc, line 42 - Provides a controller building upon the core controller but providing more features like full CRUD functionality.
Class
- EntityAPIControllerInterface
- Interface for EntityControllers compatible with the entity API.
Code
public function save($entity);