CacheableBinaryFileResponse.php in Media Download 1.2.x
Same filename and directory in other branches
Namespace
Drupal\media_downloadFile
src/CacheableBinaryFileResponse.phpView source
<?php
namespace Drupal\media_download;
use Drupal\Core\Cache\CacheableResponseInterface;
use Drupal\Core\Cache\CacheableResponseTrait;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
/**
* Provides a binary file response class that is cacheable by Drupal.
*
* Copyright (C) 2021 Library Solutions, LLC (et al.).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
class CacheableBinaryFileResponse extends BinaryFileResponse implements CacheableResponseInterface {
use CacheableResponseTrait;
}
Classes
Name![]() |
Description |
---|---|
CacheableBinaryFileResponse | Provides a binary file response class that is cacheable by Drupal. |