class FusionView extends AbstractView (View source)

A Fusion view for Neos

Traits

Properties

protected Service $i18nService from  FusionViewI18nTrait
protected SiteNodeUtility $siteNodeUtility
protected ContentRepositoryRegistry $contentRepositoryRegistry
protected array<string,array<int,mixed>> $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 $fusionRuntime
protected Context $securityContext

Methods

void
setFallbackRuleFromDimension(DimensionSpacePoint $dimensionSpacePoint)

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

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

Node|null
getClosestDocumentNode(Node $node)

No description

Node
getCurrentSiteNode()

No description

Node
getCurrentNode()

No description

getFusionRuntime(Node $currentSiteNode)

No description

AbstractView
assign(string $key, mixed $value)

Clear the cached runtime instance on assignment of variables

Details

protected void setFallbackRuleFromDimension(DimensionSpacePoint $dimensionSpacePoint)

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

DimensionSpacePoint $dimensionSpacePoint

Return Value

void

Exceptions

InvalidLocaleIdentifierException

ResponseInterface render()

Renders the view

Return Value

ResponseInterface

The rendered view

Exceptions

Exception

if no node is given

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 Node|null getClosestDocumentNode(Node $node)

No description

Parameters

Node $node

Return Value

Node|null

protected Node getCurrentSiteNode()

No description

Return Value

Node

Exceptions

Exception

protected Node getCurrentNode()

No description

Return Value

Node

Exceptions

Exception

protected Runtime getFusionRuntime(Node $currentSiteNode)

No description

Parameters

Node $currentSiteNode

Return Value

Runtime

AbstractView assign(string $key, mixed $value)

Clear the cached runtime instance on assignment of variables

Parameters

string $key
mixed $value

Return Value

AbstractView