FluidViewAdapter implements ViewInterface, ViewInterface, TemplateAwareViewInterface
A view adapter that handles a Typo3Fluid view and implements generic ext:core ViewInterface.
This is a specific view adapter is not considered part of the Public TYPO3 API.
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.
- getLayoutRootPaths() : array<string|int, mixed>
- getPartialRootPaths() : array<string|int, mixed>
- getRenderingContext() : RenderingContextInterface
- getTemplatePaths() : TemplatePaths
- getTemplateRootPaths() : array<string|int, mixed>
- getViewHelperResolver() : ViewHelperResolver
- hasTemplate() : bool
- initializeRenderingContext() : void
- render() : string
- Renders the view. Optionally receives a template location.
- renderPartial() : mixed
- renderSection() : mixed
- setCache() : void
- setFormat() : void
- setLayoutPathAndFilename() : void
- setLayoutRootPaths() : void
- setPartialRootPaths() : void
- setRenderingContext() : void
- setRequest() : void
- setTemplate() : void
- setTemplatePathAndFilename() : void
- setTemplateRootPaths() : void
- setTemplateSource() : 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
selfassignMultiple()
Add multiple variables to the view data collection.
public
assignMultiple(array<string|int, mixed> $values) : self
Parameters
- $values : array<string|int, mixed>
-
Array of string keys with mixed-type values.
Return values
selfgetLayoutRootPaths()
public
getLayoutRootPaths() : array<string|int, mixed>
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->getLayoutRootPaths() instead.
Return values
array<string|int, mixed>getPartialRootPaths()
public
getPartialRootPaths() : array<string|int, mixed>
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->getPartialRootPaths() instead.
Return values
array<string|int, mixed>getRenderingContext()
public
getRenderingContext() : RenderingContextInterface
Return values
RenderingContextInterfacegetTemplatePaths()
public
getTemplatePaths() : TemplatePaths
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths() instead.
Return values
TemplatePathsgetTemplateRootPaths()
public
getTemplateRootPaths() : array<string|int, mixed>
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->getTemplateRootPaths() instead.
Return values
array<string|int, mixed>getViewHelperResolver()
public
getViewHelperResolver() : ViewHelperResolver
Will be removed in TYPO3 v14. Use getRenderingContext()->getViewHelperResolver() instead.
Return values
ViewHelperResolverhasTemplate()
public
hasTemplate() : bool
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->getTemplateSource() instead.
Return values
boolinitializeRenderingContext()
public
initializeRenderingContext() : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getViewHelperVariableContainer()->setView($view) instead.
render()
Renders the view. Optionally receives a template location.
public
render([string $templateFileName = '' ]) : string
Parameters
- $templateFileName : string = ''
Return values
stringrenderPartial()
public
renderPartial(mixed $partialName, mixed $sectionName, array<string|int, mixed> $variables[, mixed $ignoreUnknown = false ]) : mixed
Parameters
- $partialName : mixed
- $sectionName : mixed
- $variables : array<string|int, mixed>
- $ignoreUnknown : mixed = false
renderSection()
public
renderSection(mixed $sectionName[, array<string|int, mixed> $variables = [] ][, mixed $ignoreUnknown = false ]) : mixed
Parameters
- $sectionName : mixed
- $variables : array<string|int, mixed> = []
- $ignoreUnknown : mixed = false
setCache()
public
setCache(FluidCacheInterface $cache) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->setCache($cache) instead.
Parameters
- $cache : FluidCacheInterface
setFormat()
public
setFormat(string $format) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getAttribute(ServerRequestInterface::class)->withFormat() and getRenderingContext()->getTemplatePaths()->setFormat() instead.
Parameters
- $format : string
setLayoutPathAndFilename()
public
setLayoutPathAndFilename(string $layoutPathAndFilename) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->setLayoutPathAndFilename() instead.
Parameters
- $layoutPathAndFilename : string
setLayoutRootPaths()
public
setLayoutRootPaths(array<string|int, mixed> $layoutRootPaths) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->setLayoutRootPaths() instead.
Parameters
- $layoutRootPaths : array<string|int, mixed>
setPartialRootPaths()
public
setPartialRootPaths(array<string|int, mixed> $partialRootPaths) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->setPartialRootPaths() instead.
Parameters
- $partialRootPaths : array<string|int, mixed>
setRenderingContext()
public
setRenderingContext(RenderingContextInterface $renderingContext) : void
Parameters
- $renderingContext : RenderingContextInterface
setRequest()
public
setRequest([ServerRequestInterface|null $request = null ]) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->setAttribute(ServerRequestInterface::class) instead.
Parameters
- $request : ServerRequestInterface|null = null
setTemplate()
public
setTemplate(string $templateName) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->setControllerAction() instead.
Parameters
- $templateName : string
setTemplatePathAndFilename()
public
setTemplatePathAndFilename(string $templatePathAndFilename) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->setTemplatePathAndFilename() instead.
Parameters
- $templatePathAndFilename : string
setTemplateRootPaths()
public
setTemplateRootPaths(array<string|int, mixed> $templateRootPaths) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->setTemplateRootPaths() instead.
Parameters
- $templateRootPaths : array<string|int, mixed>
setTemplateSource()
public
setTemplateSource(string $templateSource) : void
Will be removed in TYPO3 v14. Use getRenderingContext()->getTemplatePaths()->setTemplateSource() instead.
Parameters
- $templateSource : string