Neos\Neos\Eel\FlowQueryOperations\ParentsUntilOperation::getParents PHP Méthode

getParents() protected méthode

protected getParents ( Neos\ContentRepository\Domain\Model\NodeInterface $contextNode, Neos\ContentRepository\Domain\Model\NodeInterface $siteNode )
$contextNode Neos\ContentRepository\Domain\Model\NodeInterface
$siteNode Neos\ContentRepository\Domain\Model\NodeInterface
    protected function getParents(NodeInterface $contextNode, NodeInterface $siteNode)
    {
        $parents = array();
        while ($contextNode !== $siteNode && $contextNode->getParent() !== null) {
            $contextNode = $contextNode->getParent();
            $parents[] = $contextNode;
        }
        return $parents;
    }