You are here

function blazy_test_blazy_alter in Blazy 8

Same name and namespace in other branches
  1. 8.2 tests/modules/blazy_test/blazy_test.module \blazy_test_blazy_alter()

Implements hook_blazy_attach_alter().

File

tests/modules/blazy_test/blazy_test.module, line 51
Testing various Blazy hooks, etc.

Code

function blazy_test_blazy_alter(array &$image, array $settings = []) {
  if (!empty($settings['media_switch']) && $settings['media_switch'] == 'blazy_test') {
    $image['#pre_render'][] = 'blazy_test_pre_render';
  }
}