function image_module_test_file_download
Same name and namespace in other branches
- 7.x modules/image/tests/image_module_test.module \image_module_test_file_download()
- 9 core/modules/image/tests/modules/image_module_test/image_module_test.module \image_module_test_file_download()
- 8.9.x core/modules/image/tests/modules/image_module_test/image_module_test.module \image_module_test_file_download()
- 10 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
Code
function image_module_test_file_download($uri) {
$default_uri = \Drupal::state()->get('image.test_file_download', FALSE);
if ($default_uri == $uri) {
return [
'X-Image-Owned-By' => 'image_module_test',
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.