/** * @param ContentInterface $element * * @return array */ public function findAllCurrentlyPublishedByElementId(StatusableInterface $element) { return $this->findBy(array('contentId' => $element->getContentId(), 'language' => $element->getLanguage(), 'currentlyPublished' => true)); }