Neos\ContentRepository\Domain\Model\Node::getNumberOfChildNodes PHP Method

getNumberOfChildNodes() public method

Returns the number of child nodes a similar getChildNodes() call would return.
public getNumberOfChildNodes ( string $nodeTypeFilter = null ) : integer
$nodeTypeFilter string If specified, only nodes with that node type are considered
return integer The number of child nodes
    public function getNumberOfChildNodes($nodeTypeFilter = null)
    {
        return $this->nodeData->getNumberOfChildNodes($nodeTypeFilter, $this->context->getWorkspace(), $this->context->getDimensions());
    }
Node