Blocks

Trait_Has_CSS_Variables

Trait for providing CSS variables to blocks.

Table of Contents

Methods

get_css_variable_string()  : string
Returns a string of CSS variables to be used by a block wrapper's style attribute.
css_variables()  : array<string|int, mixed>
Returns a keyed array of CSS variables.

Methods

get_css_variable_string()

Returns a string of CSS variables to be used by a block wrapper's style attribute.

public get_css_variable_string() : string
Return values
string

css_variables()

Returns a keyed array of CSS variables.

protected css_variables() : array<string|int, mixed>

Where the key is the CSS variable name and the value is the CSS variable value.

Return values
array<string|int, mixed>

        
On this page

Search results