You are here

public function CacheflushApi::clearById in CacheFlush 8

Clear cache preset by cacheflush entity id.

Parameters

\Drupal\cacheflush_entity\Entity\CacheflushEntity $cacheflush: Caheflush entity to run.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse Redirect path.

1 string reference to 'CacheflushApi::clearById'
cacheflush.routing.yml in ./cacheflush.routing.yml
cacheflush.routing.yml

File

src/Controller/CacheflushApi.php, line 78

Class

CacheflushApi
Returns responses for Cacheflush routes.

Namespace

Drupal\cacheflush\Controller

Code

public function clearById(CacheflushEntity $cacheflush) {
  $this
    ->clearPresetCache($cacheflush);
  return $this
    ->redirectUrl();
}