class FusionView extends AbstractView (View source)

A Fusion view for Neos

Traits

Properties

protected Service $i18nService from  FusionViewI18nTrait
protected array $supportedOptions

This contains the supported options, their default values, descriptions and types.

protected FusionService $fusionService
protected string $fusionPath

The Fusion path to use for rendering the node given in "value", defaults to "page".

protected Runtime $fusionRuntime
protected Context $securityContext

Methods

void
setFallbackRuleFromDimension(TraversableNodeInterface $currentSiteNode)

If a content dimension named "language" exists, it is used to set the locale fallback chain order for rendering based on that.

string|ResponseInterface
render()

Renders the view

string|ResponseInterface
parsePotentialRawHttpResponse(string $output)

No description

bool
isRawHttpResponse(mixed $value)

Checks if the mixed input looks like a raw HTTTP response.

bool
canRenderWithNodeAndPath()

Is it possible to render $node with $his->fusionPath?

void
setFusionPath(string $fusionPath)

Set the Fusion path to use for rendering the node given in "value"

string
getFusionPath()

No description

getFusionRuntime(TraversableNodeInterface $currentSiteNode)

No description

assign(string $key, mixed $value)

Clear the cached runtime instance on assignment of variables

Details

protected void setFallbackRuleFromDimension(TraversableNodeInterface $currentSiteNode)

If a content dimension named "language" exists, it is used to set the locale fallback chain order for rendering based on that.

This overrides the fallback order from Neos.Flow.i18n.fallbackRule.order - the strict flag is kept from the settings!

Parameters

TraversableNodeInterface $currentSiteNode

Return Value

void

Exceptions

InvalidLocaleIdentifierException

string|ResponseInterface render()

Renders the view

Return Value

string|ResponseInterface

The rendered view

Exceptions

Exception

protected string|ResponseInterface parsePotentialRawHttpResponse(string $output)

No description

Parameters

string $output

Return Value

string|ResponseInterface

If output is a string with a HTTP preamble a ResponseInterface otherwise the original output.

protected bool isRawHttpResponse(mixed $value)

Checks if the mixed input looks like a raw HTTTP response.

Parameters

mixed $value

Return Value

bool

bool canRenderWithNodeAndPath()

Is it possible to render $node with $his->fusionPath?

Return Value

bool

true if $node can be rendered at fusionPath

Exceptions

Exception

void setFusionPath(string $fusionPath)

Set the Fusion path to use for rendering the node given in "value"

Parameters

string $fusionPath

Return Value

void

string getFusionPath()

No description

Return Value

string

protected TraversableNodeInterface getClosestDocumentNode(TraversableNodeInterface $node)

No description

Parameters

TraversableNodeInterface $node

Return Value

TraversableNodeInterface

protected TraversableNodeInterface getCurrentSiteNode()

No description

Return Value

TraversableNodeInterface

Exceptions

Exception

protected TraversableNodeInterface getCurrentNode()

No description

Return Value

TraversableNodeInterface

Exceptions

Exception

protected Runtime getFusionRuntime(TraversableNodeInterface $currentSiteNode)

No description

Parameters

TraversableNodeInterface $currentSiteNode

Return Value

Runtime

FusionView assign(string $key, mixed $value)

Clear the cached runtime instance on assignment of variables

Parameters

string $key
mixed $value

Return Value

FusionView