public function Domain::setUrl in Domain Access 8
Sets the domain-specific link to the current URL.
Overrides DomainInterface::setUrl
1 call to Domain::setUrl()
- Domain::getUrl in domain/
src/ Entity/ Domain.php - Gets the url for a domain.
File
- domain/
src/ Entity/ Domain.php, line 283
Class
- Domain
- Defines the domain entity.
Namespace
Drupal\domain\EntityCode
public function setUrl() {
$request = \Drupal::request();
$uri = $request ? $request
->getRequestUri() : '/';
$this->url = $this
->getScheme() . $this
->getHostname() . $uri;
}