public function DomainSourcePathProcessor::getActiveDomain in Domain Access 8
Gets the active domain.
Return value
\Drupal\domain\DomainInterface The active domain.
1 call to DomainSourcePathProcessor::getActiveDomain()
- DomainSourcePathProcessor::processOutbound in domain_source/
src/ HttpKernel/ DomainSourcePathProcessor.php - Processes the outbound path.
File
- domain_source/
src/ HttpKernel/ DomainSourcePathProcessor.php, line 273
Class
- DomainSourcePathProcessor
- Processes the outbound path using path alias lookups.
Namespace
Drupal\domain_source\HttpKernelCode
public function getActiveDomain() {
if (!isset($this->activeDomain)) {
// Ensure that the loader has run.
// In some tests, the kernel event has not.
$active = $this->negotiator
->getActiveDomain();
if (empty($active)) {
$active = $this->negotiator
->getActiveDomain(TRUE);
}
$this->activeDomain = $active;
}
return $this->activeDomain;
}