/**
  * Render page title with icon, table title and record title
  *
  * @return string
  */
 protected function renderPageTitle()
 {
     if ($this->type === 'folder') {
         $table = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xlf:folder');
         $title = $this->doc->getResourceHeader($this->folderObject, array(' ', ''), FALSE);
     } elseif ($this->type === 'file') {
         $table = $GLOBALS['LANG']->sL($GLOBALS['TCA'][$this->table]['ctrl']['title']);
         $title = $this->doc->getResourceHeader($this->fileObject, array(' ', ''), FALSE);
     } else {
         $table = $GLOBALS['LANG']->sL($GLOBALS['TCA'][$this->table]['ctrl']['title']);
         $title = $this->doc->getHeader($this->table, $this->row, $this->pageinfo['_thePath'], 1, array(' ', ''), FALSE);
     }
     return '<h1>' . ($table ? '<small>' . $table . '</small><br />' : '') . $title . '</h1>';
 }
 /**
  * Render page title with icon, table title and record title
  *
  * @return string
  */
 protected function renderPageTitle()
 {
     if ($this->type === 'folder') {
         $table = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:folder');
         $title = $this->doc->getResourceHeader($this->folderObject, array(' ', ''), false);
     } elseif ($this->type === 'file') {
         $table = $this->getLanguageService()->sL($GLOBALS['TCA'][$this->table]['ctrl']['title']);
         $title = $this->doc->getResourceHeader($this->fileObject, array(' ', ''), false);
     } else {
         $table = $this->getLanguageService()->sL($GLOBALS['TCA'][$this->table]['ctrl']['title']);
         $title = $this->doc->getHeader($this->table, $this->row, $this->pageInfo['_thePath'], 1, array(' ', ''), false);
     }
     // Set HTML title tag
     $this->titleTag = $table . ': ' . strip_tags(BackendUtility::getRecordTitle($this->table, $this->row));
     return '<h1>' . ($table ? '<small>' . $table . '</small><br />' : '') . $title . '</h1>';
 }