/** * Test if comment can be indexed * * @param Newscoop\Entity\Comment $comment * @return bool */ public function isIndexable(DocumentInterface $comment) { return $comment->getStatus() === 'approved'; }