protected function StaticGenerator::restoreRequestStack in Tome 8
Restores the request stack to its previous state.
Parameters
\Symfony\Component\HttpFoundation\Request[] $stack: An array of previous stack requests.
1 call to StaticGenerator::restoreRequestStack()
- StaticGenerator::requestPath in modules/
tome_static/ src/ StaticGenerator.php - Requests and exports a given path.
File
- modules/
tome_static/ src/ StaticGenerator.php, line 581
Class
- StaticGenerator
- Handles static site generation.
Namespace
Drupal\tome_staticCode
protected function restoreRequestStack(array $stack) {
while ($this->requestStack
->pop()) {
}
foreach ($stack as $request) {
$this->requestStack
->push($request);
}
}