You are here

function simple_image_rotate_entity_presave in Simple Image Rotate 2.1.x

Same name and namespace in other branches
  1. 8 simple_image_rotate.module \simple_image_rotate_entity_presave()
  2. 7.2 simple_image_rotate.module \simple_image_rotate_entity_presave()
  3. 7 simple_image_rotate.module \simple_image_rotate_entity_presave()
  4. 1.0.x simple_image_rotate.module \simple_image_rotate_entity_presave()
  5. 2.0.x simple_image_rotate.module \simple_image_rotate_entity_presave()

Implements hook_entity_presave().

File

./simple_image_rotate.module, line 135
This is the Simple Image Rotate module for rotating uploaded image files.

Code

function simple_image_rotate_entity_presave(EntityInterface $entity) {

  // Only applies to content entities, not config.
  if (!is_a($entity, 'Drupal\\Core\\Config\\Entity\\ConfigEntityBase')) {
    simple_image_rotate_rotate_image($entity);
  }
}