Neos\Neos\Ui\Domain\Model\ChangeInterface::canApply PHP Method

canApply() public method

Checks whether this change can be applied to the subject
public canApply ( ) : boolean
return boolean
    public function canApply();

Usage Example

Esempio n. 1
0
 /**
  * Checks whether this change can be merged with a subsequent change
  *
  * @param  ChangeInterface $subsequentChange
  * @return boolean
  */
 public function canMerge(ChangeInterface $subsequentChange)
 {
     if (!$subsequentChange instanceof AbstractMove) {
         return false;
     }
     if ($subsequentChange->getSubject() !== $this->getSubject()) {
         return false;
     }
     return $subsequentChange->canApply();
 }