1.20.x entity.controller.inc protected EntityDatabaseStorageController::preSave(EntityInterface $entity)

Acts on an entity before the presave hook is invoked.

Used before the entity is saved and before invoking the presave hook.

File

modules/entity/entity.controller.inc, line 685
Entity API controller classes and interface.

Class

EntityDatabaseStorageController
Implements the entity storage controller interface for the database.

Code

protected function preSave(EntityInterface $entity) {
}