protected function setSingleColPosItems(PageLayoutView $parentObject, &$colPosValues, &$row)
    {
        $specificIds = $this->helper->getSpecificIds($row);

        /** @var $expressionBuilder ExpressionBuilder */
        $expressionBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
            ->getQueryBuilderForTable('tt_content')
            ->expr();
        $queryBuilder = $parentObject->getQueryBuilder(
            'tt_content',
            $specificIds['pid'],
            [
                $expressionBuilder->eq('colPos', -1),
                $expressionBuilder->in('tx_gridelements_container', [(int)$row['uid'], $specificIds['uid']]),
            ]
        );
        $restrictions = $queryBuilder->getRestrictions();
        if ($this->showHidden) {
            $restrictions->removeByType(HiddenRestriction::class);
        }
        $restrictions->removeByType(StartTimeRestriction::class);
        $restrictions->removeByType(EndTimeRestriction::class);
        $queryBuilder->setRestrictions($restrictions);

        $colPosValues[] = [0, ''];

        return $parentObject->getResult($queryBuilder->execute());
    }
protected function setSingleColPosItems(PageLayoutView $parentObject, &$colPosValues, &$row)
    {
        $specificIds = $this->helper->getSpecificIds($row);

        /** @var $expressionBuilder ExpressionBuilder */
        $expressionBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
            ->getQueryBuilderForTable('tt_content')
            ->expr();
        $queryBuilder = $parentObject->getQueryBuilder(
            'tt_content',
            $specificIds['pid'],
            [
                $expressionBuilder->eq('colPos', -1),
                $expressionBuilder->in('tx_gridelements_container', [(int)$row['uid'], $specificIds['uid']]),
            ]
        );
        $restrictions = $queryBuilder->getRestrictions();
        if ($this->showHidden) {
            $restrictions->removeByType(HiddenRestriction::class);
        }
        $restrictions->removeByType(StartTimeRestriction::class);
        $restrictions->removeByType(EndTimeRestriction::class);
        $queryBuilder->setRestrictions($restrictions);

        $colPosValues[] = [0, ''];

        return $parentObject->getResult($queryBuilder->execute());
    }
protected function setSingleColPosItems ( PageLayoutView $ parentObject , & $ colPosValues , & $ row ) { $ specificIds = $ this -> helper -> getSpecificIds ( $ row ) ; /** @var $expressionBuilder ExpressionBuilder */ $ expressionBuilder = GeneralUtility :: makeInstance ( ConnectionPool :: class ) -> getQueryBuilderForTable ( 'tt_content' ) -> expr ( ) ; $ queryBuilder = $ parentObject -> getQueryBuilder ( 'tt_content' , $ specificIds [ 'pid' ] , [ $ expressionBuilder -> eq ( 'colPos' , - 1 ) , $ expressionBuilder -> in ( 'tx_gridelements_container' , [ ( int ) $ row [ 'uid' ] , $ specificIds [ 'uid' ] ] ) , ] ) ; $ restrictions = $ queryBuilder -> getRestrictions ( ) ; if ( $ this -> showHidden ) { $ restrictions -> removeByType ( HiddenRestriction :: class ) ; } $ restrictions -> removeByType ( StartTimeRestriction :: class ) ; $ restrictions -> removeByType ( EndTimeRestriction :: class ) ; $ queryBuilder -> setRestrictions ( $ restrictions ) ; $ colPosValues [ ] = [ 0 , '' ] ; return $ parentObject -> getResult ( $ queryBuilder -> execute ( ) ) ; }
Directly returns the items for a single column if the rendering mode is set to single columns only

@param PageLayoutView $parentObject : The parent object that triggered this hook
@param array $colPosValues : The column positions that have been found for that layout
@param array $row : The current data row for the container item

@return array collected items for this column
Directly returns the items for a single column if the rendering mode is set to single columns only