You are here

public function LinkManager::setLinkDomain in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/rest/src/LinkManager/LinkManager.php \Drupal\rest\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/rest/src/LinkManager/LinkManager.php, line 69
Contains \Drupal\rest\LinkManager\LinkManager.

Class

LinkManager

Namespace

Drupal\rest\LinkManager

Code

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