public function CacheDecoratedDataProvider::__construct in RESTful 7.2
Constructs a CacheDecoratedDataProvider object.
Parameters
DataProviderInterface $subject: The data provider to add caching to.
\DrupalCacheInterface $cache_controller: The cache controller to add the cache.
File
- src/
Plugin/ resource/ DataProvider/ CacheDecoratedDataProvider.php, line 47 - Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.
Class
- CacheDecoratedDataProvider
- Class CacheDecoratedDataProvider.
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function __construct(DataProviderInterface $subject, \DrupalCacheInterface $cache_controller) {
$this->subject = $subject;
$this->cacheController = $cache_controller;
}