Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UrlGenerator.php

function UrlGenerator::setContext

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::setContext()

Overrides RequestContextAwareInterface::setContext

File

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

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) : void {
    $this->context = $context;
}
RSS feed
Powered by Drupal