public function RebuildCacheAccessController::reloadPage in Rebuild Cache Access 8
Reload the previous page.
1 call to RebuildCacheAccessController::reloadPage()
- RebuildCacheAccessController::rebuildCache in src/
Controller/ RebuildCacheAccessController.php - Rebuild all caches, then redirects to the previous page.
File
- src/
Controller/ RebuildCacheAccessController.php, line 41
Class
- RebuildCacheAccessController
- Returns responses for rebuild_cache_access module routes.
Namespace
Drupal\rebuild_cache_access\ControllerCode
public function reloadPage() {
$request = $this->requestStack
->getCurrentRequest();
if ($request->server
->get('HTTP_REFERER')) {
return $request->server
->get('HTTP_REFERER');
}
else {
return '/';
}
}