VariableRenderableInterface
Scope: frontend **This class is NOT meant to be sub classed by developers.**
Table of Contents
Methods
- addVariant() : mixed
- Adds the specified variant to this form element
- getVariants() : array<string|int, RenderableVariantInterface>
- Get all rendering variants
- setOptions() : mixed
- Set multiple properties of this object at once.
Methods
addVariant()
Adds the specified variant to this form element
public
addVariant(RenderableVariantInterface $variant) : mixed
Parameters
- $variant : RenderableVariantInterface
getVariants()
Get all rendering variants
public
getVariants() : array<string|int, RenderableVariantInterface>
Return values
array<string|int, RenderableVariantInterface>setOptions()
Set multiple properties of this object at once.
public
setOptions(array<string|int, mixed> $options[, bool $reset = false ]) : mixed
Every property which has a corresponding set* method can be set using the passed $options array.
Parameters
- $options : array<string|int, mixed>
- $reset : bool = false