Neos.Neos/Classes/Service/PluginService.php
public function getPluginNodesWithViewDefinitions(ContentContext $context)
    {
        $pluginNodes = [];
        foreach ($this->getPluginNodes($context) as $pluginNode) {
            /** @var NodeInterface $pluginNode */
            if ($this->getPluginViewDefinitionsByPluginNodeType($pluginNode->getNodeType()) !== []) {
                $pluginNodes[] = $pluginNode;
            }
        }
        return $pluginNodes;
    }
public function getPluginNodesWithViewDefinitions(ContentContext $context)
    {
        $pluginNodes = [];
        foreach ($this->getPluginNodes($context) as $pluginNode) {
            /** @var NodeInterface $pluginNode */
            if ($this->getPluginViewDefinitionsByPluginNodeType($pluginNode->getNodeType()) !== []) {
                $pluginNodes[] = $pluginNode;
            }
        }
        return $pluginNodes;
    }
public function getPluginNodesWithViewDefinitions ( ContentContext $ context ) { $ pluginNodes = [ ] ; foreach ( $ this -> getPluginNodes ( $ context ) as $ pluginNode ) { /** @var NodeInterface $pluginNode */ if ( $ this -> getPluginViewDefinitionsByPluginNodeType ( $ pluginNode -> getNodeType ( ) ) !== [ ] ) { $ pluginNodes [ ] = $ pluginNode ; } } return $ pluginNodes ; }
Returns an array of all plugin nodes with View Definitions

@param ContentContext $context
@return array<NodeInterface> all plugin nodes with View Definitions in the current $context
Returns an array of all plugin nodes with View Definitions