public function Domain::setPath in Domain Access 8
Sets the base path to this domain.
Overrides DomainInterface::setPath
1 call to Domain::setPath()
- Domain::getPath in domain/
src/ Entity/ Domain.php - Gets the path for a domain.
File
- domain/
src/ Entity/ Domain.php, line 275
Class
- Domain
- Defines the domain entity.
Namespace
Drupal\domain\EntityCode
public function setPath() {
global $base_path;
$this->path = $this
->getScheme() . $this
->getHostname() . ($base_path ?: '/');
}