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