ProvideStaticVariablesToComponentEvent
FinalYes
Event to provide additional variables to a Fluid component's template.
These variables should be static and must not have any dependencies on runtime information, such as the request. Think of these variables as something that could be provided as static autocomplete in IDEs: Prefixes based on component name, global design tokens, ...
Tags
Table of Contents
Methods
- __construct() : mixed
- getComponentCollection() : ViewHelperResolverDelegateInterface|ComponentDefinitionProviderInterface|ComponentTemplateResolverInterface
- getStaticVariables() : array<string, mixed>
- getViewHelperName() : string
- setStaticVariables() : void
Methods
__construct()
public
__construct(ViewHelperResolverDelegateInterface|ComponentDefinitionProviderInterface|ComponentTemplateResolverInterface $componentCollection, string $viewHelperName) : mixed
Parameters
- $componentCollection : ViewHelperResolverDelegateInterface|ComponentDefinitionProviderInterface|ComponentTemplateResolverInterface
- $viewHelperName : string
getComponentCollection()
public
getComponentCollection() : ViewHelperResolverDelegateInterface|ComponentDefinitionProviderInterface|ComponentTemplateResolverInterface
Return values
ViewHelperResolverDelegateInterface|ComponentDefinitionProviderInterface|ComponentTemplateResolverInterfacegetStaticVariables()
public
getStaticVariables() : array<string, mixed>
Return values
array<string, mixed>getViewHelperName()
public
getViewHelperName() : string
Return values
stringsetStaticVariables()
public
setStaticVariables(array<string, mixed> $staticVariables) : void
Parameters
- $staticVariables : array<string, mixed>