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

isNodeTypeAllowedAsChildNode() public method

Checks if the given $nodeType would be allowed as a child node of this node according to the configured constraints.
public isNodeTypeAllowedAsChildNode ( NodeType $nodeType ) : boolean
$nodeType NodeType
return boolean TRUE if the passed $nodeType is allowed as child node
    public function isNodeTypeAllowedAsChildNode(NodeType $nodeType)
    {
        if ($this->isAutoCreated()) {
            return $this->getParent()->getNodeType()->allowsGrandchildNodeType($this->getName(), $nodeType);
        } else {
            return $this->getNodeType()->allowsChildNodeType($nodeType);
        }
    }
Node