Tsfe::cObjGetSingle()
\nn\t3::Tsfe()->cObjGetSingle($type = '', $conf = []);
Render a TypoScript object.
Earlier: $GLOBALS['TSFE']->cObj->cObjGetSingle()
\nn\t3::Tsfe()->cObjGetSingle('IMG_RESOURCE', ['file'=>'image.jpg', 'file.'=>['maxWidth'=>200]] )
Copied!
Source Code
public function cObjGetSingle( $type = '', $conf = [] )
{
try {
$content = $this->cObj()->cObjGetSingle( $type, $conf );
return $content;
} catch (\Error $e) {
return 'ERROR: ' . $e->getMessage();
}
}
Copied!