Neos\Neos\Ui\Controller\BackendController::createContext PHP Метод

createContext() защищенный Метод

Create a ContentContext to be used for the backend redirects.
protected createContext ( string $workspaceName ) : TYPO3\Neos\Domain\Service\ContentContext
$workspaceName string
Результат TYPO3\Neos\Domain\Service\ContentContext
    protected function createContext($workspaceName)
    {
        $contextProperties = array('workspaceName' => $workspaceName, 'invisibleContentShown' => true, 'inaccessibleContentShown' => true);
        $currentDomain = $this->domainRepository->findOneByActiveRequest();
        if ($currentDomain !== null) {
            $contextProperties['currentSite'] = $currentDomain->getSite();
            $contextProperties['currentDomain'] = $currentDomain;
        } else {
            $contextProperties['currentSite'] = $this->siteRepository->findFirstOnline();
        }
        return $this->contextFactory->create($contextProperties);
    }