public function UrlGenerator::setContext

Sets the request context.

@api

Parameters

RequestContext $context The context:

Overrides RequestContextAwareInterface::setContext

1 method overrides UrlGenerator::setContext()

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php, line 99

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;
}