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;
}