FluidTYPO3\Flux\View\PreviewView::getRecords PHP Method

getRecords() protected method

protected getRecords ( PageLayoutView $view, array $row, string $area ) : array
$view PageLayoutView
$row array
$area string
return array
    protected function getRecords(PageLayoutView $view, array $row, $area)
    {
        // The following solution is half lifted from \TYPO3\CMS\Backend\View\PageLayoutView::getContentRecordsPerColumn
        // and relies on TYPO3 core query parts for enable-clause-, language- and versioning placeholders. All that needs
        // to be done after this, is filter the array according to moved/deleted placeholders since TYPO3 will not remove
        // records based on them having remove placeholders.
        $condition = "AND tx_flux_parent = '" . $this->getFluxParentUid($row) . "' AND tx_flux_column = '" . $area . "' ";
        $condition .= "AND colPos = '" . ContentService::COLPOS_FLUXCONTENT . "' ";
        $condition .= 1 === $view->tt_contentConfig['showHidden'] ? '' : 'AND hidden = 0 ';
        $queryParts = $view->makeQueryArray('tt_content', $row['pid'], $condition);
        $result = $this->getDatabaseConnection()->exec_SELECT_queryArray($queryParts);
        $rows = $view->getResult($result);
        $rows = $this->processRecordOverlays($rows, $view);
        return $rows;
    }