public function isIndexable() { if ($this->getStatus() == ArticleStatuses::STATUS_PUBLISHED) { return true; } return false; }