function FileInterface::getDownloadHeaders

Examines a file entity and returns content headers for download.

Return value

array An associative array of headers, as expected by \Symfony\Component\HttpFoundation\StreamedResponse.

1 method overrides FileInterface::getDownloadHeaders()
File::getDownloadHeaders in core/modules/file/src/Entity/File.php
Examines a file entity and returns content headers for download.

File

core/modules/file/src/FileInterface.php, line 152

Class

FileInterface
Defines getter and setter methods for file entity base fields.

Namespace

Drupal\file

Code

public function getDownloadHeaders() : array;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.