Neos.Neos/Classes/Service/PluginService.php
public function getPluginNodeByAction(NodeInterface $currentNode, $controllerObjectName, $actionName)
    {
        $viewDefinition = $this->getPluginViewDefinitionByAction($controllerObjectName, $actionName);

        if ($currentNode->getNodeType()->isOfType('Neos.Neos:PluginView')) {
            $masterPluginNode = $this->getPluginViewNodeByMasterPlugin($currentNode, $viewDefinition->getName());
        } else {
            $masterPluginNode = $currentNode;
        }

        if ($viewDefinition !== null) {
            $viewNode = $this->getPluginViewNodeByMasterPlugin($currentNode, $viewDefinition->getName());
            if ($viewNode instanceof Node) {
                return $viewNode;
            }
        }

        return $masterPluginNode;
    }
public function getPluginNodeByAction(NodeInterface $currentNode, $controllerObjectName, $actionName)
    {
        $viewDefinition = $this->getPluginViewDefinitionByAction($controllerObjectName, $actionName);

        if ($currentNode->getNodeType()->isOfType('Neos.Neos:PluginView')) {
            $masterPluginNode = $this->getPluginViewNodeByMasterPlugin($currentNode, $viewDefinition->getName());
        } else {
            $masterPluginNode = $currentNode;
        }

        if ($viewDefinition !== null) {
            $viewNode = $this->getPluginViewNodeByMasterPlugin($currentNode, $viewDefinition->getName());
            if ($viewNode instanceof Node) {
                return $viewNode;
            }
        }

        return $masterPluginNode;
    }
public function getPluginNodeByAction ( NodeInterface $ currentNode , $ controllerObjectName , $ actionName ) { $ viewDefinition = $ this -> getPluginViewDefinitionByAction ( $ controllerObjectName , $ actionName ) ; if ( $ currentNode -> getNodeType ( ) -> isOfType ( 'Neos.Neos:PluginView' ) ) { $ masterPluginNode = $ this -> getPluginViewNodeByMasterPlugin ( $ currentNode , $ viewDefinition -> getName ( ) ) ; } else { $ masterPluginNode = $ currentNode ; } if ( $ viewDefinition !== null ) { $ viewNode = $ this -> getPluginViewNodeByMasterPlugin ( $ currentNode , $ viewDefinition -> getName ( ) ) ; if ( $ viewNode instanceof Node ) { return $ viewNode ; } } return $ masterPluginNode ; }
returns a plugin node or one of it's view nodes
if an view has been configured for that specific
controller and action combination

@param NodeInterface $currentNode
@param string $controllerObjectName
@param string $actionName
@return 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