class ViewConfigurationManager (View source)

A View Configuration Manager

This classes compiles all configurations matching the provided request out of the Views.yaml into one view configuration used by the ActionController to setup up the view.

Properties

protected VariableFrontend $cache
protected ConfigurationManager $configurationManager
protected CompilingEvaluator $eelEvaluator

Methods

array
getViewConfiguration(ActionRequest $request)

This method walks through the view configuration and applies matching configurations in the order of their specifity score.

string
createCacheIdentifier(ActionRequest $request)

Create a complete cache identifier for the given request that conforms to cache identifier syntax

Details

array getViewConfiguration(ActionRequest $request)

This method walks through the view configuration and applies matching configurations in the order of their specifity score.

Possible options are currently the viewObjectName to specify a different class that will be used to create the view and an array of options that will be set on the view object.

Parameters

ActionRequest $request

Return Value

array

protected string createCacheIdentifier(ActionRequest $request)

Create a complete cache identifier for the given request that conforms to cache identifier syntax

Parameters

ActionRequest $request

Return Value

string