protected function MediaDownload::getContentDisposition in Media Entity Download 8.2
Get the disposition header for downloads.
Return value
string Either ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT.
1 method overrides MediaDownload::getContentDisposition()
- MediaDownloadInline::getContentDisposition in src/
Plugin/ Linkit/ Substitution/ MediaDownloadInline.php - Get the disposition header for downloads.
File
- src/
Plugin/ Linkit/ Substitution/ MediaDownload.php, line 108
Class
- MediaDownload
- A substitution plugin for a direct download link to a file.
Namespace
Drupal\media_entity_download\Plugin\Linkit\SubstitutionCode
protected function getContentDisposition() {
return ResponseHeaderBag::DISPOSITION_ATTACHMENT;
}