RenderableVariant implements RenderableVariantInterface
Scope: frontend **This class is NOT meant to be sub classed by developers.**
Table of Contents
Interfaces
- RenderableVariantInterface
- Scope: frontend **This class is NOT meant to be sub classed by developers.**
Properties
- $applied : bool
- $condition : string
- $identifier : string
- $options : array<string|int, mixed>
- $renderable : VariableRenderableInterface
Methods
- __construct() : mixed
- apply() : void
- Apply the specified variant to this form element regardless of their conditions
- conditionMatches() : bool
- getIdentifier() : string
- isApplied() : bool
Properties
$applied
protected
bool
$applied
= false
$condition
protected
string
$condition
= ''
$identifier
protected
string
$identifier
$options
protected
array<string|int, mixed>
$options
$renderable
protected
VariableRenderableInterface
$renderable
Methods
__construct()
public
__construct(string $identifier, array<string|int, mixed> $options, VariableRenderableInterface $renderable) : mixed
Parameters
- $identifier : string
- $options : array<string|int, mixed>
- $renderable : VariableRenderableInterface
Tags
apply()
Apply the specified variant to this form element regardless of their conditions
public
apply() : void
conditionMatches()
public
conditionMatches(Resolver $conditionResolver) : bool
Parameters
- $conditionResolver : Resolver
Return values
boolgetIdentifier()
public
getIdentifier() : string
Return values
stringisApplied()
public
isApplied() : bool