Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate::canMerge PHP Méthode

canMerge() public méthode

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
Résultat boolean
    public function canMerge(ChangeInterface $subsequentChange)
    {
        if (!$subsequentChange instanceof AbstractCreate) {
            return false;
        }
        if ($subsequentChange->getSubject() !== $this->getSubject()) {
            return false;
        }
        return $subsequentChange->canApply();
    }