Jackalope\ObjectManager::filterChildNodeNamesByType PHP Method

filterChildNodeNamesByType() public method

This method will either let the transport filter if that is possible or forward to getNodes and return the names of the nodes found there.,
public filterChildNodeNamesByType ( PHPCR\NodeInterface $node, string | array $nameFilter, string | array $typeFilter ) : ArrayIterato\ArrayIterator
$node PHPCR\NodeInterface
$nameFilter string | array
$typeFilter string | array
return ArrayIterato\ArrayIterator
    public function filterChildNodeNamesByType(NodeInterface $node, $nameFilter, $typeFilter)
    {
        if ($this->transport instanceof NodeTypeFilterInterface) {
            return $this->transport->filterChildNodeNamesByType($node->getPath(), $node->getNodeNames($nameFilter), $typeFilter);
        }
        // fallback: get the actual nodes and let that filter. this is expensive.
        return new ArrayIterator(array_keys($node->getNodes($nameFilter, $typeFilter)->getArrayCopy()));
    }