Url::unroutedUrlAssembler

protected 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 838

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

1
2
3
4
5
6
protected function unroutedUrlAssembler() {
  if (!$this->urlAssembler) {
    $this->urlAssembler = \Drupal::service('unrouted_url_assembler');
  }
  return $this->urlAssembler;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.