/**
  * @param RenderAPI $renderApi
  * @param $unit
  * @param $moduleInfo
  * @param string $pageId
  */
 private function renderTeaserContent($renderApi, $unit, $moduleInfo, $pageId)
 {
     $i18n = new Translator($renderApi, $moduleInfo, $renderApi->getLocale());
     $navigation = $renderApi->getNavigation();
     $page = $navigation->getPage($pageId);
     $type = $renderApi->getFormValue($unit, 'type');
     $htmlOutput = null;
     switch ($type) {
         case 'pageTitle':
             $htmlOutput = $this->getHeadlineTag($renderApi, $unit, $this->getPageTitle($page, $i18n), $this->getUrl($renderApi, $page));
             break;
         case 'description':
             $htmlOutput = $this->getTextTag($renderApi, $unit, $this->getDescription($page, $i18n), $this->getUrl($renderApi, $page));
             break;
         case 'date':
             $htmlOutput = $this->getDateTag($renderApi, $unit, $this->getDate($page));
             break;
         case 'link':
             $htmlOutput = $this->getLinkTag($renderApi, $unit, $this->getUrl($renderApi, $page));
             break;
         case 'image':
             $htmlOutput = $this->getMediaTag($renderApi, $unit, $moduleInfo, $this->getMediaId($page), $this->getPageTitle($page, $i18n), $this->getUrl($renderApi, $page));
             break;
         case 'price':
             $htmlOutput = $this->getPriceTag($renderApi, $this->getPrice($page), $i18n);
             break;
         case 'addcart':
             $htmlOutput = $this->getAddCartTag($renderApi, $unit, $moduleInfo, $page, $i18n);
             break;
     }
     if ($htmlOutput) {
         echo $htmlOutput->toString();
     }
 }