ColorStyle
class ColorStyle extends ColorStyle (View source)
Properties
protected string | $name | The name of this style. |
from Style |
protected string | $variable | The name of the associated CSS variable. |
from Style |
Methods
Get the type handle of a given Style instance.
Get the display name for this style (localized and escaped accordingly to $format).
Gets the name of the CSS variable we should use to inspect the data collection AND
write into the request data collection. The reason for this is because the new customizer
just has a unified approach to this –whereas the old customizer made you define the name of the
variable in the xml file as page-background
and reference it with page-background-color
in the
variable collections.
No description
Details
in
Style at line 32
static protected string
getTypeFromClass(Style|object $class, string $suffix = 'Style')
Get the type handle of a given Style instance.
in
Style at line 47
$this
setName(string $name)
Set the name of this style.
in
Style at line 59
getName()
Get the name of this style.
in
Style at line 73
string
getDisplayName(string $format = 'html')
Get the display name for this style (localized and escaped accordingly to $format).
in
Style at line 92
$this
setVariable(string $variable)
Set the name of the associated CSS variable.
in
Style at line 104
getVariable()
Get the name of the associated CSS variable.
getVariableToInspect()
Gets the name of the CSS variable we should use to inspect the data collection AND
write into the request data collection. The reason for this is because the new customizer
just has a unified approach to this –whereas the old customizer made you define the name of the
variable in the xml file as page-background
and reference it with page-background-color
in the
variable collections.
in
Style at line 121
jsonSerialize()
No description
ValueInterface|null
createValueFromVariableCollection(NormalizedVariableCollection $collection)
No description
ValueInterface|null
createValueFromRequestDataCollection(array $styles)
No description
VariableInterface|null
createVariableFromValue(ValueInterface $value)
No description