コード例 #1
0
 /**
  * Add page IDs to the preview of the element
  */
 protected function addPageIdsToTable()
 {
     $pageIdsNames = ['detailPid', 'listPid', 'yearPid', 'monthPid', 'weekPid', 'dayPid'];
     foreach ($pageIdsNames as $pageIdName) {
         $pageId = (int) $this->flexFormService->get('settings.' . $pageIdName, 'pages');
         $pageRow = BackendUtility::getRecord('pages', $pageId);
         if ($pageRow) {
             $this->layoutService->addRow(LocalizationUtility::translate($pageIdName, 'calendarize'), $pageRow['title'] . ' (' . $pageId . ')');
         }
     }
 }