W3cubDocs

/Drupal 8

public function Url::setUnroutedUrlAssembler

public Url::setUnroutedUrlAssembler(UnroutedUrlAssemblerInterface $url_assembler)

Sets the unrouted URL assembler.

Parameters

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

Return value

$this

File

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

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Url.php/function/Url::setUnroutedUrlAssembler/8.1.x