RenderingContext

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

Extends
RenderingContext

Table of Contents

Properties

$controllerAction  : string
$controllerName  : string

Methods

__construct()  : mixed
buildParserConfiguration()  : Configuration
Build parser configuration. Adds custom fluid interceptors from configuration.
getControllerAction()  : string
getControllerName()  : string
getRequest()  : ServerRequestInterface|null
setControllerAction()  : void
setControllerName()  : void
setRequest()  : void
It is currently allowed to setRequest(null) to unset a request object created by factories. Some tests use this to make sure no extbase request is set. This may change.

Properties

$controllerAction

protected string $controllerAction = 'Default'

$controllerName

protected string $controllerName = 'Default'

Methods

__construct()

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

Parameters

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

buildParserConfiguration()

Build parser configuration. Adds custom fluid interceptors from 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

getControllerName()

public getControllerName() : string

Return values

string

getRequest()

public getRequest() : ServerRequestInterface|null

Deprecated

since TYPO3 v13, will be removed in TYPO3 v14. Use $renderingContext->hasAttribute(ServerRequestInterface::class) and $renderingContext->getAttribute(ServerRequestInterface::class) instead.

Return values

ServerRequestInterface|null

setControllerAction()

public setControllerAction(string $action) : void

Parameters

$action : string

setControllerName()

public setControllerName(string $controllerName) : void

Parameters

$controllerName : string

setRequest()

It is currently allowed to setRequest(null) to unset a request object created by factories. Some tests use this to make sure no extbase request is set. This may change.

public setRequest([ServerRequestInterface|null $request = null ]) : void

Deprecated

since TYPO3 v13, will be removed in TYPO3 v14. Use RenderingContextFactory->create($pathArray, $request) instead.

Parameters

$request : ServerRequestInterface|null = null
On this page