Neos.Neos/Classes/Service/PluginService.php
public function getPluginViewNodeByMasterPlugin(NodeInterface $node, $viewName)
    {
        /** @var $context ContentContext */
        $context = $node->getContext();
        foreach ($this->getNodes(['Neos.Neos:PluginView'], $context) as $pluginViewNode) {
            /** @var NodeInterface $pluginViewNode */
            if ($pluginViewNode->isRemoved()) {
                continue;
            }
            if ($pluginViewNode->getProperty('plugin') === $node->getIdentifier()
                && $pluginViewNode->getProperty('view') === $viewName) {
                return $pluginViewNode;
            }
        }

        return null;
    }
public function getPluginViewNodeByMasterPlugin(NodeInterface $node, $viewName)
    {
        /** @var $context ContentContext */
        $context = $node->getContext();
        foreach ($this->getNodes(['Neos.Neos:PluginView'], $context) as $pluginViewNode) {
            /** @var NodeInterface $pluginViewNode */
            if ($pluginViewNode->isRemoved()) {
                continue;
            }
            if ($pluginViewNode->getProperty('plugin') === $node->getIdentifier()
                && $pluginViewNode->getProperty('view') === $viewName) {
                return $pluginViewNode;
            }
        }

        return null;
    }
public function getPluginViewNodeByMasterPlugin ( NodeInterface $ node , $ viewName ) { /** @var $context ContentContext */ $ context = $ node -> getContext ( ) ; foreach ( $ this -> getNodes ( [ 'Neos.Neos:PluginView' ] , $ context ) as $ pluginViewNode ) { /** @var NodeInterface $pluginViewNode */ if ( $ pluginViewNode -> isRemoved ( ) ) { continue ; } if ( $ pluginViewNode -> getProperty ( 'plugin' ) === $ node -> getIdentifier ( ) && $ pluginViewNode -> getProperty ( 'view' ) === $ viewName ) { return $ pluginViewNode ; } } return null ; }
returns a specific view node of an master plugin
or NULL if it does not exist

@param NodeInterface $node
@param string $viewName
@return NodeInterface
returns a specific view node of an master plugin or NULL if it does not exist