PageRendererViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:be.pagerenderer>

FinalYes

ViewHelper to register backend module resources like CSS and JavaScript using the PageRenderer.

Examples

All options::

<f:be.pageRenderer pageTitle="foo" includeCssFiles="{0: 'EXT:my_ext/Resources/Public/Css/Stylesheet.css'}" includeJsFiles="{0: 'EXT:my_ext/Resources/Public/JavaScript/Library1.js', 1: 'EXT:my_ext/Resources/Public/JavaScript/Library2.js'}" addJsInlineLabels="{'my_ext.label1': 'LLL:EXT:my_ext/Resources/Private/Language/locallang.xlf:label1'}" includeJavaScriptModules="{0: '@my-vendor/my-ext/my-module.js'}" includeRequireJsModules="{0: 'EXT:my_ext/Resources/Public/JavaScript/RequireJsModule'}" addInlineSettings="{'some.setting.key': 'some.setting.value'}" />

This will load the specified css, js files and requireJs modules, adds a custom js inline setting, and adds a resolved label to be used in js.

Table of Contents

Methods

initializeArguments()  : void
renderStatic()  : void
getLanguageService()  : LanguageService
getPageRenderer()  : PageRenderer

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : void
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

        
On this page

Search results