Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Url.php \Drupal\Core\Url::unroutedUrlAssembler()
  2. 9 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::unroutedUrlAssembler()

Gets the unrouted URL assembler for non-Drupal URLs.

Return value

\Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler.

1 call to Url::unroutedUrlAssembler()
Url::toString in core/lib/Drupal/Core/Url.php
Generates the string URL representation for this Url object.

File

core/lib/Drupal/Core/Url.php, line 885

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

protected function unroutedUrlAssembler() {
  if (!$this->urlAssembler) {
    $this->urlAssembler = \Drupal::service('unrouted_url_assembler');
  }
  return $this->urlAssembler;
}