getCommentLink(); if ( $link ) { $linkInfo['url'] = $link; } return $linkInfo; } /** * @inheritDoc */ public function getBodyMessage() { if ( !$this->isBundled() ) { // For events enhanced by DiscussionTools: add a text snippet // (Echo can only do this for new sections, not for every comment) $snippet = $this->getContentSnippet(); if ( $snippet ) { return new RawMessage( '$1', [ Message::plaintextParam( $snippet ) ] ); } } return parent::getBodyMessage(); } }