PHP Класс Neos\Neos\Service\PluginService

Whenever details about Plugins or PluginViews are needed this service should be used. For some methods the ContentContext has to be specified. This is required in order for the ContentRepository to fetch nodes of the current workspace. The context can be retrieved from any node of the correct workspace & tree. If no node is available (e.g. for CLI requests) the ContentContextFactory can be used to create a context instance.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$contentContextFactory Neos\Neos\Domain\Service\ContentContextFactory
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$nodeFactory Neos\ContentRepository\Domain\Factory\NodeFactory
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$securityContext Neos\Flow\Security\Context

Открытые методы

Метод Описание
getPluginNodeByAction ( Neos\ContentRepository\Domain\Model\NodeInterface $currentNode, string $controllerObjectName, string $actionName ) : Neos\ContentRepository\Domain\Model\NodeInterface returns a plugin node or one of it's view nodes if an view has been configured for that specific controller and action combination
getPluginNodes ( ContentContext $context ) : array Returns an array of all available plugin nodes
getPluginNodesWithViewDefinitions ( ContentContext $context ) : array Returns an array of all plugin nodes with View Definitions
getPluginViewDefinitionByAction ( string $controllerObjectName, string $actionName ) : PluginViewDefinition Fetch a PluginView definition that matches the specified controller and action combination
getPluginViewDefinitionsByPluginNodeType ( NodeType $pluginNodeType ) : array Get all configured PluginView definitions for a specific $pluginNodeType
getPluginViewNodeByMasterPlugin ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $viewName ) : Neos\ContentRepository\Domain\Model\NodeInterface returns a specific view node of an master plugin or NULL if it does not exist

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

Метод Описание
getNodes ( array $nodeTypes, ContentContext $context ) : array Find all nodes of a specific node type
getPluginViewConfigurationsByPluginNodeType ( NodeType $pluginNodeType ) : array

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

getNodes() защищенный метод

Find all nodes of a specific node type
protected getNodes ( array $nodeTypes, ContentContext $context ) : array
$nodeTypes array
$context Neos\Neos\Domain\Service\ContentContext current content context, see class doc comment for details
Результат array

getPluginNodeByAction() публичный метод

returns a plugin node or one of it's view nodes if an view has been configured for that specific controller and action combination
public getPluginNodeByAction ( Neos\ContentRepository\Domain\Model\NodeInterface $currentNode, string $controllerObjectName, string $actionName ) : Neos\ContentRepository\Domain\Model\NodeInterface
$currentNode Neos\ContentRepository\Domain\Model\NodeInterface
$controllerObjectName string
$actionName string
Результат Neos\ContentRepository\Domain\Model\NodeInterface

getPluginNodes() публичный метод

Returns an array of all available plugin nodes
public getPluginNodes ( ContentContext $context ) : array
$context Neos\Neos\Domain\Service\ContentContext current content context, see class doc comment for details
Результат array

getPluginNodesWithViewDefinitions() публичный метод

Returns an array of all plugin nodes with View Definitions
public getPluginNodesWithViewDefinitions ( ContentContext $context ) : array
$context Neos\Neos\Domain\Service\ContentContext
Результат array

getPluginViewConfigurationsByPluginNodeType() защищенный метод

protected getPluginViewConfigurationsByPluginNodeType ( NodeType $pluginNodeType ) : array
$pluginNodeType Neos\ContentRepository\Domain\Model\NodeType
Результат array

getPluginViewDefinitionByAction() публичный метод

Fetch a PluginView definition that matches the specified controller and action combination
public getPluginViewDefinitionByAction ( string $controllerObjectName, string $actionName ) : PluginViewDefinition
$controllerObjectName string
$actionName string
Результат Neos\Neos\Domain\Model\PluginViewDefinition

getPluginViewDefinitionsByPluginNodeType() публичный метод

Get all configured PluginView definitions for a specific $pluginNodeType
public getPluginViewDefinitionsByPluginNodeType ( NodeType $pluginNodeType ) : array
$pluginNodeType Neos\ContentRepository\Domain\Model\NodeType node type name of the master plugin
Результат array

getPluginViewNodeByMasterPlugin() публичный метод

returns a specific view node of an master plugin or NULL if it does not exist
public getPluginViewNodeByMasterPlugin ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $viewName ) : Neos\ContentRepository\Domain\Model\NodeInterface
$node Neos\ContentRepository\Domain\Model\NodeInterface
$viewName string
Результат Neos\ContentRepository\Domain\Model\NodeInterface

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

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

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

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

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
Результат Neos\ContentRepository\Domain\Repository\NodeDataRepository

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

protected NodeFactory,Neos\ContentRepository\Domain\Factory $nodeFactory
Результат Neos\ContentRepository\Domain\Factory\NodeFactory

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

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Результат Neos\ContentRepository\Domain\Service\NodeTypeManager

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

protected Context,Neos\Flow\Security $securityContext
Результат Neos\Flow\Security\Context