1 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

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

Class

EntityDatabaseStorageController
Implements the entity storage controller interface for the database.

Code

protected function preSave(EntityInterface $entity) {
}