function image_module_test_file_download in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/image/tests/modules/image_module_test/image_module_test.module \image_module_test_file_download()
File
- core/
modules/ image/ tests/ modules/ image_module_test/ image_module_test.module, line 10 - Provides Image module hook implementations for testing purposes.
Code
function image_module_test_file_download($uri) {
$default_uri = \Drupal::state()
->get('image.test_file_download') ?: FALSE;
if ($default_uri == $uri) {
return array(
'X-Image-Owned-By' => 'image_module_test',
);
}
}