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

canApply() public method

Checks whether this change can be applied to the subject
public canApply ( ) : boolean
return boolean
    public function canApply()
    {
        $nodeType = $this->getSubject()->getNodeType();
        $propertyName = $this->getPropertyName();
        $nodeTypeProperties = $nodeType->getProperties();
        return isset($nodeTypeProperties[$propertyName]);
    }