You are here

function retina_images_image_effect_info_alter in Retina Images 8

Same name and namespace in other branches
  1. 7 retina_images.module \retina_images_image_effect_info_alter()

Implements hook_image_effect_info_alter().

File

./retina_images.module, line 14
This module provides an image effect to assist in outputing high resolution images.

Code

function retina_images_image_effect_info_alter(&$effects) {
  $effects['image_resize']['class'] = 'Drupal\\retina_images\\Plugin\\ImageEffect\\RetinaResizeImageEffect';
  $effects['image_scale']['class'] = 'Drupal\\retina_images\\Plugin\\ImageEffect\\RetinaScaleImageEffect';
  $effects['image_scale_and_crop']['class'] = 'Drupal\\retina_images\\Plugin\\ImageEffect\\RetinaScaleAndCropImageEffect';
  $effects['image_crop']['class'] = 'Drupal\\retina_images\\Plugin\\ImageEffect\\RetinaCropImageEffect';
}