/**
  * Create a repo link directly to the item.
  * We can't use Special:ItemByTitle here as the item might have already been updated.
  *
  * @param Title $title
  *
  * @return string|null
  */
 private function getItemUrl(Title $title)
 {
     $entityId = $this->siteLinkLookup->getItemIdForSiteLink(new SiteLink($this->siteId, $title->getPrefixedText()));
     if (!$entityId) {
         return null;
     }
     return $this->repoLinker->getEntityUrl($entityId);
 }
 /**
  * @param EntityId $entityId
  *
  * @return string
  */
 private function getEntityUrl(EntityId $entityId)
 {
     $fragment = '#sitelinks-' . htmlspecialchars($this->langLinkSiteGroup, ENT_QUOTES);
     return $this->repoLinker->getEntityUrl($entityId) . $fragment;
 }