You are here

protected function CacheDecoratedDataProvider::clearRenderedCache in RESTful 7.2

Clears the cache entries related to the given cache fragments.

Parameters

\Doctrine\Common\Collections\ArrayCollection $cache_fragments: The cache fragments to clear.

2 calls to CacheDecoratedDataProvider::clearRenderedCache()
CacheDecoratedDataProvider::remove in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Delete operation.
CacheDecoratedDataProvider::update in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Update operation.

File

src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php, line 278
Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.

Class

CacheDecoratedDataProvider
Class CacheDecoratedDataProvider.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected function clearRenderedCache(ArrayCollection $cache_fragments) {
  $cache_object = new RenderCache($cache_fragments, NULL, $this->cacheController);
  $cache_object
    ->clear();
}