You are here

public function LinkManager::setLinkDomain in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/hal/src/LinkManager/LinkManager.php \Drupal\hal\LinkManager\LinkManager::setLinkDomain()

Sets the link domain used in constructing link URIs.

Parameters

string $domain: The link domain to use for constructing link URIs.

Return value

$this

Overrides ConfigurableLinkManagerInterface::setLinkDomain

File

core/modules/hal/src/LinkManager/LinkManager.php, line 65

Class

LinkManager

Namespace

Drupal\hal\LinkManager

Code

public function setLinkDomain($domain) {
  $this->relationLinkManager
    ->setLinkDomain($domain);
  $this->typeLinkManager
    ->setLinkDomain($domain);
  return $this;
}