FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper::renderRecord PHP Метод

renderRecord() защищенный Метод

This function renders a raw tt_content record into the corresponding element by typoscript RENDER function. We keep track of already rendered records to avoid rendering the same record twice inside the same nested stack of content elements.
protected renderRecord ( array $row ) : string | null
$row array
Результат string | null
    protected function renderRecord(array $row)
    {
        if (0 < $GLOBALS['TSFE']->recordRegister['tt_content:' . $row['uid']]) {
            return null;
        }
        $conf = ['tables' => 'tt_content', 'source' => $row['uid'], 'dontCheckPid' => 1];
        $parent = $GLOBALS['TSFE']->currentRecord;
        // If the currentRecord is set, we register, that this record has invoked this function.
        // It's should not be allowed to do this again then!!
        if (false === empty($parent)) {
            ++$GLOBALS['TSFE']->recordRegister[$parent];
        }
        $html = $GLOBALS['TSFE']->cObj->cObjGetSingle('RECORDS', $conf);
        $GLOBALS['TSFE']->currentRecord = $parent;
        if (false === empty($parent)) {
            --$GLOBALS['TSFE']->recordRegister[$parent];
        }
        return $html;
    }