Neos\Neos\Ui\Domain\Model\Feedback\Operations\DocumentNodeCreated::isSimilarTo PHP Method

isSimilarTo() public method

Checks whether this feedback is similar to another
public isSimilarTo ( Neos\Neos\Ui\Domain\Model\FeedbackInterface $feedback ) : boolean
$feedback Neos\Neos\Ui\Domain\Model\FeedbackInterface
return boolean
    public function isSimilarTo(FeedbackInterface $feedback)
    {
        if (!$feedback instanceof NodeCreated) {
            return false;
        }
        return $this->getDocument()->getContextPath() === $feedback->getDocument()->getContextPath();
    }