image_module_test.module
Same filename in other branches
File
-
core/
modules/ image/ tests/ modules/ image_module_test/ image_module_test.module
View source
<?php
/**
* @file
* Provides Image module hook implementations for testing purposes.
*/
declare (strict_types=1);
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',
];
}
}
Functions
Title | Deprecated | Summary |
---|---|---|
image_module_test_file_download |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.