public function LinkManager::setLinkDomain in Drupal 9
Same name and namespace in other branches
- 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
Namespace
Drupal\hal\LinkManagerCode
public function setLinkDomain($domain) {
$this->relationLinkManager
->setLinkDomain($domain);
$this->typeLinkManager
->setLinkDomain($domain);
return $this;
}