diff options
Diffstat (limited to 'core/modules/file/src/FileInterface.php')
-rw-r--r-- | core/modules/file/src/FileInterface.php | 9 |
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; + } |