function image_example_image_effect_info_alter

Implements hook_image_effect_info_alter().

Allows your module to alter the information provided in \Drupal\image\Annotation\ImageEffect.

Related topics

File

modules/image_example/image_example.module, line 51

Code

function image_example_image_effect_info_alter(&$effects) {
    // $effects is an array of effect arrays keyed by the effect name.
    if (isset($effects['image_resize'])) {
        $effects['image_resize']['description'] = t('The resize effect will resize the source image to the specified dimensions.');
    }
}