We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc6e46 commit 6fba282Copy full SHA for 6fba282
tests/functional/Helper/Drupal/hook_fixtures/file_download.twig
@@ -10,7 +10,7 @@ declare(strict_types=1);
10
/**
11
* Implements hook_file_download().
12
*/
13
-function {{ machine_name }}_file_download($uri) {
+function {{ machine_name }}_file_download($uri): array|int|null {
14
// Check to see if this is a config download.
15
$scheme = StreamWrapperManager::getScheme($uri);
16
$target = StreamWrapperManager::getTarget($uri);
@@ -19,4 +19,5 @@ function {{ machine_name }}_file_download($uri) {
19
'Content-disposition' => 'attachment; filename="config.tar.gz"',
20
];
21
}
22
+ return NULL;
23
0 commit comments