Act on an entity before it is about to be created or updated.
Drupal\Core\Entity\EntityInterface $entity: The entity object.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_entity_presave(Drupal\Core\Entity\EntityInterface $entity) {
$entity->changed = REQUEST_TIME;
}