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

Breadcrumb

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

function Url::unroutedUrlAssembler

Gets the unrouted URL assembler for non-Drupal URLs.

Return value

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

File

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

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;
}
RSS feed
Powered by Drupal