CObjectViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:cobject>
ViewHelper to render CObjects (objects containing rendering definitions for records/elements), using the global TypoScript configuration.
<f:cObject typoscriptObjectPath="lib.someLibObject" />
Note: You have to ensure proper escaping (htmlspecialchars
/intval
/etc.) on your own!
Tags
Table of Contents
Properties
- $escapeChildren : bool
- Disable escaping of child nodes' output
- $escapeOutput : bool
- Disable escaping of this node's output
Methods
- getContentArgumentName() : string
- Explicitly set argument name to be used as content.
- initializeArguments() : void
- render() : string
- Renders the TypoScript object in the given TypoScript setup path.
- getConfigurationManager() : ConfigurationManagerInterface
- getContentObjectRenderer() : ContentObjectRenderer
- renderContentObject() : string
- Renders single content object and increases time tracker stack pointer
- resetFrontendEnvironment() : void
- Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
- simulateFrontendEnvironment() : TypoScriptFrontendController|null
- \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle() relies on $GLOBALS['TSFE']
Properties
$escapeChildren
Disable escaping of child nodes' output
protected
bool
$escapeChildren
= false
$escapeOutput
Disable escaping of this node's output
protected
bool
$escapeOutput
= false
Methods
getContentArgumentName()
Explicitly set argument name to be used as content.
public
getContentArgumentName() : string
Return values
stringinitializeArguments()
public
initializeArguments() : void
render()
Renders the TypoScript object in the given TypoScript setup path.
public
render() : string
Tags
Return values
stringgetConfigurationManager()
protected
static getConfigurationManager() : ConfigurationManagerInterface
Return values
ConfigurationManagerInterfacegetContentObjectRenderer()
protected
static getContentObjectRenderer(ServerRequestInterface $request) : ContentObjectRenderer
Parameters
- $request : ServerRequestInterface
Return values
ContentObjectRendererrenderContentObject()
Renders single content object and increases time tracker stack pointer
protected
static renderContentObject(ContentObjectRenderer $contentObjectRenderer, array<string|int, mixed> $setup, string $typoscriptObjectPath, string $lastSegment) : string
Parameters
- $contentObjectRenderer : ContentObjectRenderer
- $setup : array<string|int, mixed>
- $typoscriptObjectPath : string
- $lastSegment : string
Return values
stringresetFrontendEnvironment()
Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
protected
static resetFrontendEnvironment(TypoScriptFrontendController|null $tsfeBackup) : void
Parameters
- $tsfeBackup : TypoScriptFrontendController|null
simulateFrontendEnvironment()
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle() relies on $GLOBALS['TSFE']
protected
static simulateFrontendEnvironment() : TypoScriptFrontendController|null