public function AccessAwareRouter::getContext in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::getContext()
File
- core/
lib/ Drupal/ Core/ Routing/ AccessAwareRouter.php, line 79
Class
- AccessAwareRouter
- A router class for Drupal with access check and upcasting.
Namespace
Drupal\Core\RoutingCode
public function getContext() {
if ($this->router instanceof RequestContextAwareInterface) {
return $this->router
->getContext();
}
}