/** * @see EntityIdFormatter::formatEntityId * * @param EntityId $entityId * * @return string Wikitext */ public function formatEntityId(EntityId $entityId) { $title = parent::formatEntityId($entityId); return "[[{$title}]]"; }
/** * @see EntityIdFormatter::formatEntityId * * @param EntityId $entityId * * @return string Wikitext */ public function formatEntityId(EntityId $entityId) { $title = parent::formatEntityId($entityId); return "[[{$title}|" . wfEscapeWikiText($entityId->getSerialization()) . "]]"; }