You are here

public function LinkManagerBase::setLinkDomain in Drupal 8

Same name and namespace in other branches
  1. 9 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;
}