Neos\Neos\Routing\FrontendNodeRoutePartHandler::buildContextFromWorkspaceName PHP Method

buildContextFromWorkspaceName() protected method

protected buildContextFromWorkspaceName ( string $workspaceName, array $dimensions = null ) : ContentContext
$workspaceName string
$dimensions array
return Neos\Neos\Domain\Service\ContentContext
    protected function buildContextFromWorkspaceName($workspaceName, array $dimensions = null)
    {
        $contextProperties = ['workspaceName' => $workspaceName, 'invisibleContentShown' => true, 'inaccessibleContentShown' => true];
        if ($dimensions !== null) {
            $contextProperties['dimensions'] = $dimensions;
        }
        return $this->contextFactory->create($contextProperties);
    }