summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/file/src/FileInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/file/src/FileInterface.php')
-rw-r--r--core/modules/file/src/FileInterface.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/modules/file/src/FileInterface.php b/core/modules/file/src/FileInterface.php
index 588009cb475b..efa6627790fe 100644
--- a/core/modules/file/src/FileInterface.php
+++ b/core/modules/file/src/FileInterface.php
@@ -142,4 +142,13 @@ interface FileInterface extends ContentEntityInterface, EntityChangedInterface,
*/
public function getCreatedTime();
+ /**
+ * Examines a file entity and returns content headers for download.
+ *
+ * @return array
+ * An associative array of headers, as expected by
+ * \Symfony\Component\HttpFoundation\StreamedResponse.
+ */
+ public function getDownloadHeaders(): array;
+
}