Neos\ContentRepository\Eel\FlowQueryOperations\NextUntilOperation::getNodesUntil PHP Метод

getNodesUntil() защищенный Метод

protected getNodesUntil ( array $nextNodes, Neos\ContentRepository\Domain\Model\NodeInterface $until ) : array
$nextNodes array the remaining nodes
$until Neos\ContentRepository\Domain\Model\NodeInterface
Результат array
    protected function getNodesUntil($nextNodes, NodeInterface $until)
    {
        $count = count($nextNodes) - 1;
        for ($i = $count; $i >= 0; $i--) {
            if ($nextNodes[$i]->getPath() === $until->getPath()) {
                unset($nextNodes[$i]);
                return array_values($nextNodes);
            } else {
                unset($nextNodes[$i]);
            }
        }
        return array_values($nextNodes);
    }