getCommentLink(); if ( $link ) { $linkInfo['url'] = $link; } return $linkInfo; } /** * @inheritDoc */ public function jsonSerialize() { $array = parent::jsonSerialize(); $array['links']['legacyPrimary'] = $this->addMarkAsRead( parent::getPrimaryLink() ) ?: []; return $array; } }