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'
File
- src/
Controller/ CacheflushApi.php, line 78
Class
- CacheflushApi
- Returns responses for Cacheflush routes.
Namespace
Drupal\cacheflush\ControllerCode
public function clearById(CacheflushEntity $cacheflush) {
$this
->clearPresetCache($cacheflush);
return $this
->redirectUrl();
}