Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate::canMerge PHP 메소드

canMerge() 공개 메소드

Checks whether this change can be merged with a subsequent change
public canMerge ( Neos\Neos\Ui\Domain\Model\ChangeInterface $subsequentChange ) : boolean
$subsequentChange Neos\Neos\Ui\Domain\Model\ChangeInterface
리턴 boolean
    public function canMerge(ChangeInterface $subsequentChange)
    {
        if (!$subsequentChange instanceof AbstractCreate) {
            return false;
        }
        if ($subsequentChange->getSubject() !== $this->getSubject()) {
            return false;
        }
        return $subsequentChange->canApply();
    }