public function RestfulEntityBase::entityPreSave in RESTful 7
Allow manipulating the entity before it is saved.
Parameters
\EntityMetadataWrapper $wrapper: The unsaved wrapped entity.
1 call to RestfulEntityBase::entityPreSave()
- RestfulEntityBase::setPropertyValues in plugins/
restful/ RestfulEntityBase.php - Set properties of the entity based on the request, and save the entity.
1 method overrides RestfulEntityBase::entityPreSave()
- RestfulEntityBaseNode::entityPreSave in plugins/
restful/ RestfulEntityBaseNode.php - Overrides RestfulEntityBase::entityPreSave().
File
- plugins/
restful/ RestfulEntityBase.php, line 995 - Contains RestfulEntityBase.
Class
- RestfulEntityBase
- An abstract implementation of RestfulEntityInterface.
Code
public function entityPreSave(\EntityMetadataWrapper $wrapper) {
}