FluidTemplateContentObject extends AbstractContentObject
Contains FLUIDTEMPLATE class object
Table of Contents
Properties
- $cObj : ContentObjectRenderer|null
- $pageRenderer : PageRenderer|null
- $request : ServerRequestInterface
- Always set via setRequest() by ContentObjectFactory after instantiation
Methods
- __construct() : mixed
- getContentObjectRenderer() : ContentObjectRenderer
- render() : string
- Rendering the cObject, FLUIDTEMPLATE
- setContentObjectRenderer() : void
- setRequest() : void
- applyStandardWrapToFluidPaths() : array<string|int, mixed>
- buildExtbaseRequestIfNeeded() : ServerRequestInterface
- getContentObjectVariables() : array<string|int, mixed>
- Compile rendered content objects in variables array ready to assign to the view.
- getLayoutRootPaths() : array<string|int, mixed>|null
- getPageRenderer() : PageRenderer
- getPageRepository() : PageRepository
- getPartialRootPaths() : array<string|int, mixed>|null
- renderFluidTemplateAssetsIntoPageRenderer() : void
- Attempts to render HeaderAssets and FooterAssets sections from the Fluid template, then adds each (if not empty) to either header or footer, as appropriate, using PageRenderer.
Properties
$cObj
protected
ContentObjectRenderer|null
$cObj
= null
$pageRenderer
protected
PageRenderer|null
$pageRenderer
= null
$request
Always set via setRequest() by ContentObjectFactory after instantiation
protected
ServerRequestInterface
$request
Methods
__construct()
public
__construct(ContentDataProcessor $contentDataProcessor, TypoScriptService $typoScriptService, ViewFactoryInterface $viewFactory) : mixed
Parameters
- $contentDataProcessor : ContentDataProcessor
- $typoScriptService : TypoScriptService
- $viewFactory : ViewFactoryInterface
getContentObjectRenderer()
public
getContentObjectRenderer() : ContentObjectRenderer
Return values
ContentObjectRendererrender()
Rendering the cObject, FLUIDTEMPLATE
public
render([array<string|int, mixed> $conf = [] ]) : string
Configuration properties:
- file string+stdWrap The FLUID template file
- layoutRootPaths array of filepath+stdWrap Root paths to layouts (fallback)
- partialRootPaths array of filepath+stdWrap Root paths to partials (fallback)
- variable array of cObjects, the keys are the variable names in fluid
- dataProcessing array of data processors which are classes to manipulate $data
- extbase.pluginName
- extbase.controllerExtensionName
- extbase.controllerName
- extbase.controllerActionName
Example: 10 = FLUIDTEMPLATE 10.templateName = MyTemplate 10.templateRootPaths.10 = EXT:site_configuration/Resources/Private/Templates/ 10.partialRootPaths.10 = EXT:site_configuration/Resources/Private/Partials/ 10.layoutRootPaths.10 = EXT:site_configuration/Resources/Private/Layouts/ 10.variables { mylabel = TEXT mylabel.value = Label from TypoScript coming }
Parameters
- $conf : array<string|int, mixed> = []
-
Array of TypoScript properties
Return values
stringsetContentObjectRenderer()
public
setContentObjectRenderer(ContentObjectRenderer $cObj) : void
Parameters
- $cObj : ContentObjectRenderer
setRequest()
public
setRequest(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
applyStandardWrapToFluidPaths()
protected
applyStandardWrapToFluidPaths(array<string|int, mixed> $paths) : array<string|int, mixed>
Parameters
- $paths : array<string|int, mixed>
Return values
array<string|int, mixed>buildExtbaseRequestIfNeeded()
protected
buildExtbaseRequestIfNeeded(ServerRequestInterface $request, array<string|int, mixed> $conf) : ServerRequestInterface
Parameters
- $request : ServerRequestInterface
- $conf : array<string|int, mixed>
Tags
Return values
ServerRequestInterfacegetContentObjectVariables()
Compile rendered content objects in variables array ready to assign to the view.
protected
getContentObjectVariables(array<string|int, mixed> $conf) : array<string|int, mixed>
Parameters
- $conf : array<string|int, mixed>
Return values
array<string|int, mixed>getLayoutRootPaths()
protected
getLayoutRootPaths(array<string|int, mixed> $conf) : array<string|int, mixed>|null
Parameters
- $conf : array<string|int, mixed>
Return values
array<string|int, mixed>|nullgetPageRenderer()
protected
getPageRenderer() : PageRenderer
Return values
PageRenderergetPageRepository()
protected
getPageRepository() : PageRepository
Return values
PageRepositorygetPartialRootPaths()
protected
getPartialRootPaths(array<string|int, mixed> $conf) : array<string|int, mixed>|null
Parameters
- $conf : array<string|int, mixed>
Return values
array<string|int, mixed>|nullrenderFluidTemplateAssetsIntoPageRenderer()
Attempts to render HeaderAssets and FooterAssets sections from the Fluid template, then adds each (if not empty) to either header or footer, as appropriate, using PageRenderer.
protected
renderFluidTemplateAssetsIntoPageRenderer(FluidViewAdapter $view, array<string|int, mixed> $variables) : void
Parameters
- $view : FluidViewAdapter
- $variables : array<string|int, mixed>