RenderingContext

class \TYPO3\CMS\Fluid\Core\Rendering\RenderingContext

Extends
RenderingContext

Class RenderingContext

Table of Contents

Properties

$controllerAction  : string
$controllerContext  : ControllerContext
Controller context being passed to the ViewHelper
$controllerName  : string
$request  : Request

Methods

__construct()  : mixed
buildParserConfiguration()  : Configuration
Build parser configuration
getControllerAction()  : string
getControllerContext()  : ControllerContext
Get the controller context which will be passed to the ViewHelper
getControllerName()  : string
getParserConfiguration()  : Configuration
Alternative to buildParserConfiguration, called only in Fluid 3.0
getRequest()  : Request
getUriBuilder()  : UriBuilder
injectViewHelperVariableContainer()  : mixed
setControllerAction()  : mixed
setControllerContext()  : mixed
Set the controller context which will be passed to the ViewHelper
setControllerName()  : mixed
setRequest()  : void
addInterceptorsToParserConfiguration()  : void

Properties

$controllerAction

protected string $controllerAction = 'Default'

$controllerContext

Controller context being passed to the ViewHelper

Deprecated

since v11, will be removed with v12.

protected ControllerContext $controllerContext

$controllerName

protected string $controllerName = 'Default'

Methods

__construct()

public __construct(ViewHelperResolver $viewHelperResolver, FluidCacheInterface $cache, array $templateProcessors, array $expressionNodeTypes) : mixed

Parameters

$viewHelperResolver : ViewHelperResolver
$cache : FluidCacheInterface
$templateProcessors : array
$expressionNodeTypes : array

buildParserConfiguration()

Build parser configuration

public buildParserConfiguration() : Configuration

Tags

throws
InvalidArgumentException

if a class not implementing InterceptorInterface was registered

Return values

Configuration

getControllerAction()

public getControllerAction() : string

Return values

string

getControllerContext()

Get the controller context which will be passed to the ViewHelper

public getControllerContext() : ControllerContext

Deprecated

since v11, will be removed in v12

Return values

ControllerContext —

The controller context to set

getControllerName()

public getControllerName() : string

Return values

string

getParserConfiguration()

Alternative to buildParserConfiguration, called only in Fluid 3.0

public getParserConfiguration() : Configuration

Return values

Configuration

getRequest()

public getRequest() : Request

Return values

Request

injectViewHelperVariableContainer()

public injectViewHelperVariableContainer(ViewHelperVariableContainer $viewHelperVariableContainer) : mixed

Parameters

$viewHelperVariableContainer : ViewHelperVariableContainer

Tags

todo:

Resolve this in ViewHelperBaseTestcase, then drop this method

setControllerAction()

public setControllerAction(string $action) : mixed

Parameters

$action : string

setControllerContext()

Set the controller context which will be passed to the ViewHelper

public setControllerContext(ControllerContext $controllerContext) : mixed

Deprecated

since v11, will be removed with v12.

Parameters

$controllerContext : ControllerContext

The controller context to set

addInterceptorsToParserConfiguration()

protected addInterceptorsToParserConfiguration(iterable<string|int, mixed> $interceptors, Configuration $parserConfiguration) : void

Parameters

$interceptors : iterable<string|int, mixed>
$parserConfiguration : Configuration
On this page