function image_module_test_image_effect_info_alter

Same name in other branches
  1. 7.x modules/image/tests/image_module_test.module \image_module_test_image_effect_info_alter()
  2. 9 core/modules/image/tests/modules/image_module_test/image_module_test.module \image_module_test_image_effect_info_alter()
  3. 10 core/modules/image/tests/modules/image_module_test/image_module_test.module \image_module_test_image_effect_info_alter()
  4. 11.x core/modules/image/tests/modules/image_module_test/image_module_test.module \image_module_test_image_effect_info_alter()

Implements hook_image_effect_info_alter().

Used to keep a count of cache misses in \Drupal\image\ImageEffectManager.

1 string reference to 'image_module_test_image_effect_info_alter'
ImageEffectsTest::testImageEffectsCaching in core/modules/image/tests/src/Functional/ImageEffectsTest.php
Test image effect caching.

File

core/modules/image/tests/modules/image_module_test/image_module_test.module, line 22

Code

function image_module_test_image_effect_info_alter(&$effects) {
    $image_effects_definition_called =& drupal_static(__FUNCTION__, 0);
    $image_effects_definition_called++;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.