/** * Now the query gets enhanced by the "l18n_parent" pointer. This results in fetching * not only L=0 and L=-1 records but native foreign language records as well. * * This method mainly gets used by the PageLayout itself. * * @param string $table UNUSED (will always be queried from tt_content) * @param integer $id Page Id to be used (not used at all, but part of the API, see $this->pidSelect) * @param array $columns colPos values to be considered to be shown * @param string $additionalWhereClause Additional where clause for database select * @return array Associative array for each column (colPos) */ protected function getContentRecordsPerColumn($table, $id, array $columns, $additionalWhereClause = '') { if (!$this->validModuleConfig()) { return parent::getContentRecordsPerColumn($table, $id, $columns, $additionalWhereClause); } if ($table !== 'table' || $this->getSelectedLanguage() === FALSE || $additionalWhereClause !== sprintf(' AND sys_language_uid IN (%d,-1)', $this->getSelectedLanguage())) { return parent::getContentRecordsPerColumn($table, $id, $columns, $additionalWhereClause); } return parent::getContentRecordsPerColumn($table, $id, $columns, ' AND l18n_parent = 0' . $this->getLanguageRestrictionWhereClause()); }