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