function LinkManagerBase::setLinkDomain

Same name in other branches
  1. 8.9.x core/modules/hal/src/LinkManager/LinkManagerBase.php \Drupal\hal\LinkManager\LinkManagerBase::setLinkDomain()

File

core/modules/hal/src/LinkManager/LinkManagerBase.php, line 36

Class

LinkManagerBase
Defines an abstract base-class for HAL link manager objects.

Namespace

Drupal\hal\LinkManager

Code

public function setLinkDomain($domain) {
    $this->linkDomain = rtrim($domain, '/');
    return $this;
}

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