/** * Test if article can be indexed * * @param Newscoop\Entity\Article $article * @return bool */ public function isIndexable(DocumentInterface $article) { return $article->isPublished() && $article->getLanguageId() > 0 && $article->getSectionId() > 0; }