/** * Add page tree watcher registering */ public function preSave($event) { parent::preSave($event); if ($this->isModified()) { $this->notify($this->isNew() ? 'create' : 'update'); } elseif ($this->getTable()->hasI18n() && $this->hasCurrentTranslation() && $this->getCurrentTranslation()->isModified()) { $this->notify($this->isNew() ? 'create' : 'update'); } }