You are here

public function DomainConfigUIManager::getSelectedDomainId in Domain Access 8

Get the selected domain ID.

Return value

string A domain machine name.

Overrides DomainConfigUIManagerInterface::getSelectedDomainId

1 call to DomainConfigUIManager::getSelectedDomainId()
DomainConfigUIManager::getSelectedConfigName in domain_config_ui/src/DomainConfigUIManager.php
Get selected config name.

File

domain_config_ui/src/DomainConfigUIManager.php, line 55

Class

DomainConfigUIManager
Domain Config UI manager.

Namespace

Drupal\domain_config_ui

Code

public function getSelectedDomainId() {
  if (!empty($this
    ->getRequest()) && ($domain = $this->currentRequest
    ->get('domain_config_ui_domain'))) {
    return $domain;
  }
  elseif (isset($_SESSION['domain_config_ui_domain'])) {
    return $_SESSION['domain_config_ui_domain'];
  }
}