Neos\Neos\Ui\Domain\Model\Changes\CreateBefore::canApply PHP Method

canApply() public method

Check if the new node's node type is allowed in the requested position
public canApply ( ) : boolean
return boolean
    public function canApply()
    {
        $parent = $this->getSubject()->getParent();
        $nodeType = $this->getNodeType();
        return $parent->isNodeTypeAllowedAsChildNode($nodeType);
    }