You are here

public function UrlGenerator::setContext in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::setContext()
  2. 8.0 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::setContext()
Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::setContext()

Sets the request context.

Parameters

RequestContext $context The context:

Overrides RequestContextAwareInterface::setContext

File

vendor/symfony/routing/Generator/UrlGenerator.php, line 95

Class

UrlGenerator
UrlGenerator can generate a URL or a path for any route in the RouteCollection based on the passed parameters.

Namespace

Symfony\Component\Routing\Generator

Code

public function setContext(RequestContext $context) {
  $this->context = $context;
}