You are here

private function DomainConfigUIManager::getRequest in Domain Access 8

Ensures that the currentRequest is loaded.

Return value

Symfony\Component\HttpFoundation\Request|null The current request object.

2 calls to DomainConfigUIManager::getRequest()
DomainConfigUIManager::getSelectedDomainId in domain_config_ui/src/DomainConfigUIManager.php
Get the selected domain ID.
DomainConfigUIManager::getSelectedLanguageId in domain_config_ui/src/DomainConfigUIManager.php
Get the selected language ID.

File

domain_config_ui/src/DomainConfigUIManager.php, line 82

Class

DomainConfigUIManager
Domain Config UI manager.

Namespace

Drupal\domain_config_ui

Code

private function getRequest() {
  if (!isset($this->currentRequest)) {
    $this->currentRequest = $this->requestStack
      ->getCurrentRequest();
  }
  return $this->currentRequest;
}