PHP Трейт Neos\Neos\Controller\CreateContentContextTrait

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_contextFactory Neos\Neos\Domain\Service\ContentContextFactory
$_domainRepository Neos\Neos\Domain\Repository\DomainRepository
$_siteRepository Neos\Neos\Domain\Repository\SiteRepository

Защищенные методы

Метод Описание
createContentContext ( string $workspaceName, array $dimensions = [] ) : ContentContext Create a ContentContext based on the given workspace name
createContextMatchingNodeData ( NodeData $nodeData ) : ContentContext Generates a Context that exactly fits the given NodeData Workspace, Dimensions & Site.

Описание методов

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

Create a ContentContext based on the given workspace name
protected createContentContext ( string $workspaceName, array $dimensions = [] ) : ContentContext
$workspaceName string Name of the workspace to set for the context
$dimensions array Optional list of dimensions and their values which should be set
Результат Neos\Neos\Domain\Service\ContentContext

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

Generates a Context that exactly fits the given NodeData Workspace, Dimensions & Site.
protected createContextMatchingNodeData ( NodeData $nodeData ) : ContentContext
$nodeData Neos\ContentRepository\Domain\Model\NodeData
Результат Neos\Neos\Domain\Service\ContentContext

Описание свойств

$_contextFactory защищенное свойство

protected ContentContextFactory,Neos\Neos\Domain\Service $_contextFactory
Результат Neos\Neos\Domain\Service\ContentContextFactory

$_domainRepository защищенное свойство

protected DomainRepository,Neos\Neos\Domain\Repository $_domainRepository
Результат Neos\Neos\Domain\Repository\DomainRepository

$_siteRepository защищенное свойство

protected SiteRepository,Neos\Neos\Domain\Repository $_siteRepository
Результат Neos\Neos\Domain\Repository\SiteRepository