Style
abstract class Style (View source)
Properties
protected string | $name | The name of this style. |
|
protected string | $variable | The name of the associated CSS variable. |
Methods
Get the value of this style as received from a request.
Get the type handle of a given Style instance.
Set the name of this style.
Get the name of this style.
Get the display name for this style (localized and escaped accordingly to $format).
Set the name of the associated CSS variable.
Get the name of the associated CSS variable.
Get a path to an elements directory for this Style. Might not be used by all styles.
No description
Details
abstract
render(Value|null|false $value = false)
Render the control of this style.
abstract Value|null
getValueFromRequest(ParameterBag $request)
Get the value of this style as received from a request.
Value|null
getValueFromList(ValueList $list)
Get the value of this style extracted from a list of values.
static protected string
getTypeFromClass(Style|object $class, string $suffix = 'Style')
Get the type handle of a given Style instance.
$this
setName(string $name)
Set the name of this style.
string
getName()
Get the name of this style.
string
getDisplayName(string $format = 'html')
Get the display name for this style (localized and escaped accordingly to $format).
$this
setVariable(string $variable)
Set the name of the associated CSS variable.
string
getVariable()
Get the name of the associated CSS variable.
string
getFormElementPath()
Get a path to an elements directory for this Style. Might not be used by all styles.
static Value[]
getValuesFromVariables(mixed $rules)
No description