function Url::setUnroutedUrlAssembler

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Url.php \Drupal\Core\Url::setUnroutedUrlAssembler()
  2. 10 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::setUnroutedUrlAssembler()
  3. 11.x core/lib/Drupal/Core/Url.php \Drupal\Core\Url::setUnroutedUrlAssembler()

Sets the unrouted URL assembler.

Parameters

\Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler: The unrouted URL assembler.

Return value

$this

File

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

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

public function setUnroutedUrlAssembler(UnroutedUrlAssemblerInterface $url_assembler) {
    $this->urlAssembler = $url_assembler;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.