public function UrlGenerator::setContext in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::setContext()
- 8.0 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::setContext()
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::setContext()
Sets the request context.
Parameters
RequestContext $context The context:
Overrides RequestContextAwareInterface::setContext
1 method overrides UrlGenerator::setContext()
- NullGenerator::setContext in core/
lib/ Drupal/ Core/ Routing/ NullGenerator.php - Sets the request context.
File
- core/
lib/ Drupal/ Core/ Routing/ UrlGenerator.php, line 97 - Contains \Drupal\Core\Routing\UrlGenerator.
Class
- UrlGenerator
- Generates URLs from route names and parameters.
Namespace
Drupal\Core\RoutingCode
public function setContext(SymfonyRequestContext $context) {
$this->context = $context;
}