protected function processChildRecord($record)
    {
        $id = (int)$record['uid'];
        $this->checkOptions($record);
        /* @var $recordContentObjectRenderer ContentObjectRenderer */
        $recordContentObjectRenderer = GeneralUtility::makeInstance(ContentObjectRenderer::class);
        $recordContentObjectRenderer->start($record, 'tt_content');
        $this->processedRecordVariables[$id] = ['data' => $record];
        if (
            (int)$this->options['recursive'] > 0 &&
            $record['CType'] === 'gridelements_pi1' &&
            !empty($record['tx_gridelements_backend_layout'])
        ) {
            $childProcessorConfiguration = $this->containerProcessorConfiguration;
            $childProcessorConfiguration['dataProcessing.']['0.'] = $this->processorConfiguration;
            $childProcessorConfiguration['dataProcessing.']['0.']['recursive'] = (int)$this->options['recursive'] - 1;
            $childProcessorConfiguration['dataProcessing.']['0'] = 'GridElementsTeam\Gridelements\DataProcessing\GridChildrenProcessor';
            $this->processedRecordVariables[$id] = $this->contentDataProcessor->process(
                $recordContentObjectRenderer,
                $childProcessorConfiguration,
                $this->processedRecordVariables[$id]
            );
        } else {
            $this->processedRecordVariables[$id] = $this->contentDataProcessor->process(
                $recordContentObjectRenderer,
                $this->containerProcessorConfiguration,
                $this->processedRecordVariables[$id]
            );
        }
    }
protected function processChildRecord($record)
    {
        $id = (int)$record['uid'];
        $this->checkOptions($record);
        /* @var $recordContentObjectRenderer ContentObjectRenderer */
        $recordContentObjectRenderer = GeneralUtility::makeInstance(ContentObjectRenderer::class);
        $recordContentObjectRenderer->start($record, 'tt_content');
        $this->processedRecordVariables[$id] = ['data' => $record];
        if (
            (int)$this->options['recursive'] > 0 &&
            $record['CType'] === 'gridelements_pi1' &&
            !empty($record['tx_gridelements_backend_layout'])
        ) {
            $childProcessorConfiguration = $this->containerProcessorConfiguration;
            $childProcessorConfiguration['dataProcessing.']['0.'] = $this->processorConfiguration;
            $childProcessorConfiguration['dataProcessing.']['0.']['recursive'] = (int)$this->options['recursive'] - 1;
            $childProcessorConfiguration['dataProcessing.']['0'] = 'GridElementsTeam\Gridelements\DataProcessing\GridChildrenProcessor';
            $this->processedRecordVariables[$id] = $this->contentDataProcessor->process(
                $recordContentObjectRenderer,
                $childProcessorConfiguration,
                $this->processedRecordVariables[$id]
            );
        } else {
            $this->processedRecordVariables[$id] = $this->contentDataProcessor->process(
                $recordContentObjectRenderer,
                $this->containerProcessorConfiguration,
                $this->processedRecordVariables[$id]
            );
        }
    }
protected function processChildRecord ( $ record ) { $ id = ( int ) $ record [ 'uid' ] ; $ this -> checkOptions ( $ record ) ; /* @var $recordContentObjectRenderer ContentObjectRenderer */ $ recordContentObjectRenderer = GeneralUtility :: makeInstance ( ContentObjectRenderer :: class ) ; $ recordContentObjectRenderer -> start ( $ record , 'tt_content' ) ; $ this -> processedRecordVariables [ $ id ] = [ 'data' => $ record ] ; if ( ( int ) $ this -> options [ 'recursive' ] > 0 && $ record [ 'CType' ] === 'gridelements_pi1' && ! empty ( $ record [ 'tx_gridelements_backend_layout' ] ) ) { $ childProcessorConfiguration = $ this -> containerProcessorConfiguration ; $ childProcessorConfiguration [ 'dataProcessing.' ] [ '0.' ] = $ this -> processorConfiguration ; $ childProcessorConfiguration [ 'dataProcessing.' ] [ '0.' ] [ 'recursive' ] = ( int ) $ this -> options [ 'recursive' ] - 1 ; $ childProcessorConfiguration [ 'dataProcessing.' ] [ '0' ] = 'GridElementsTeam\Gridelements\DataProcessing\GridChildrenProcessor' ; $ this -> processedRecordVariables [ $ id ] = $ this -> contentDataProcessor -> process ( $ recordContentObjectRenderer , $ childProcessorConfiguration , $ this -> processedRecordVariables [ $ id ] ) ; } else { $ this -> processedRecordVariables [ $ id ] = $ this -> contentDataProcessor -> process ( $ recordContentObjectRenderer , $ this -> containerProcessorConfiguration , $ this -> processedRecordVariables [ $ id ] ) ; } }
Processes child records recursively to get other children into the same array

@param $record
Processes child records recursively to get other children into the same array