Neos\Neos\Ui\Domain\Model\Changes\Create::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()
    {
        $subject = $this->getSubject();
        $nodeType = $this->getNodeType();
        return $subject->isNodeTypeAllowedAsChildNode($nodeType);
    }