Jackalope\ObjectManager::getCachedDescendants PHP Method

getCachedDescendants() public method

It makes no difference whether or not the node itself is cached. Note that this method will also return deleted node objects so you can use them in refresh operations.
public getCachedDescendants ( string $absPath, string $class = 'Node' ) : ArrayIterato\ArrayIterator
$absPath string
$class string
return ArrayIterato\ArrayIterator
    public function getCachedDescendants($absPath, $class = 'Node')
    {
        $descendants = array();
        foreach ($this->objectsByPath[$class] as $path => $node) {
            if (0 === strpos($path, "{$absPath}/")) {
                $descendants[$path] = $node;
            }
        }
        return new ArrayIterator(array_values($descendants));
    }