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.
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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