Ejemplo n.º 1
0
 /**
  * Watches or unwatches the entity.
  *
  * @note Keep in sync with logic in EditPage!
  * @todo: move to separate service
  *
  * @param bool $watch whether to watch or unwatch the page.
  *
  * @throws MWException
  */
 private function updateWatchlist($watch)
 {
     if ($this->getTitle() === null) {
         throw new MWException('Title not yet known!');
     }
     $this->entityStore->updateWatchlist($this->user, $this->newEntity->getId(), $watch);
 }