PageRendererViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:be.pagerenderer>
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'}" addInlineSettings="{'some.setting.key': 'some.setting.value'}" />
This will load the specified css, js files and JavaScript modules, adds a custom js inline setting, and adds a resolved label to be used in js.
Table of Contents
Methods
- initializeArguments() : void
- render() : void
- getLanguageService() : LanguageService
- getPageRenderer() : PageRenderer
Methods
initializeArguments()
public
initializeArguments() : void
render()
public
render() : void
getLanguageService()
protected
static getLanguageService() : LanguageService
Return values
LanguageServicegetPageRenderer()
protected
static getPageRenderer() : PageRenderer