/**
  * Check if there are localized records with
  *        tx_powermail_domain_model_pages.forms = 0
  *
  * @return bool
  */
 public function render()
 {
     $pages = $this->pageRepository->findAllWrongLocalizedPages();
     if (count($pages) > 0) {
         return false;
     }
     return true;
 }
 /**
  * Get Pages with contents which are related to a tt_content-powermail-plugin
  *
  * @param \In2code\Powermail\Domain\Model\Form $form
  * @return array
  */
 public function render(\In2code\Powermail\Domain\Model\Form $form)
 {
     return $this->pageRepository->getPagesWithContentRelatedToForm($form);
 }
 /**
  * Get Pages with contents which are related to a tt_content-powermail-plugin
  *
  * @param Form $form
  * @return array
  */
 public function render(Form $form)
 {
     return $this->pageRepository->getPagesWithContentRelatedToForm($form);
 }
 /**
  * View helper check if given value is array or not
  *
  * @param int $uid PID
  * @return string Page Name
  */
 public function render($uid = 0)
 {
     return $this->pageRepository->getPageNameFromUid($uid);
 }