function AccessAwareRouter::setContext
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::setContext()
- 10 core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::setContext()
- 11.x core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::setContext()
File
-
core/
lib/ Drupal/ Core/ Routing/ AccessAwareRouter.php, line 71
Class
- AccessAwareRouter
- A router class for Drupal with access check and upcasting.
Namespace
Drupal\Core\RoutingCode
public function setContext(SymfonyRequestContext $context) {
if ($this->router instanceof RequestContextAwareInterface) {
$this->router
->setContext($context);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.