FluidViewAdapter

readonly class \TYPO3\CMS\Fluid\View\FluidViewAdapter

Implements
ViewInterface, ViewInterface, TemplateAwareViewInterface

A view adapter that handles a Typo3Fluid view and implements generic ext:core ViewInterface.

Table of Contents

Interfaces

ViewInterface
A generic view interface.
ViewInterface
TemplateAwareViewInterface

Properties

$view  : ViewInterface|TemplateAwareViewInterface

Methods

__construct()  : mixed
assign()  : self
Add a variable to the view data collection.
assignMultiple()  : self
Add multiple variables to the view data collection.
getRenderingContext()  : RenderingContextInterface
render()  : string
Renders the view. Optionally receives a template location.
renderPartial()  : mixed
renderSection()  : mixed
setRenderingContext()  : void

Properties

$view

protected ViewInterface|TemplateAwareViewInterface $view

Methods

__construct()

public __construct(ViewInterface|TemplateAwareViewInterface $view) : mixed

Parameters

$view : ViewInterface|TemplateAwareViewInterface

assign()

Add a variable to the view data collection.

public assign(string $key, mixed $value) : self

Parameters

$key : string
$value : mixed

Return values

self

assignMultiple()

Add multiple variables to the view data collection.

public assignMultiple(array $values) : self

Parameters

$values : array

Array of string keys with mixed-type values.

Return values

self

getRenderingContext()

public getRenderingContext() : RenderingContextInterface

Return values

RenderingContextInterface

render()

Renders the view. Optionally receives a template location.

public render([string $templateFileName = '' ]) : string

Parameters

$templateFileName : string = ''

Return values

string

renderPartial()

public renderPartial(mixed $partialName, mixed $sectionName, array $variables[, mixed $ignoreUnknown = false ]) : mixed

Parameters

$partialName : mixed
$sectionName : mixed
$variables : array
$ignoreUnknown : mixed = false

renderSection()

public renderSection(mixed $sectionName[, array $variables = [] ][, mixed $ignoreUnknown = false ]) : mixed

Parameters

$sectionName : mixed
$variables : array = []
$ignoreUnknown : mixed = false

setRenderingContext()

public setRenderingContext(RenderingContextInterface $renderingContext) : void

Parameters

$renderingContext : RenderingContextInterface
On this page