function 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::keyValue('image')->get('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.