CSS_Variables implements Registerable

Responsible for outputting the CSS variables.

Interfaces, Classes and Traits

Registerable

Table of Contents

$prefix  : string
The prefix to use for each variable.
$variables  : array<string|int, mixed>
The variables to output.
__construct()  : mixed
Constructor.
get_prefix()  : string
Get the prefix.
get_variables()  : array<string|int, mixed>
Get the variables.
output()  : void
Output the variables.
register()  : mixed

Properties

$prefix

The prefix to use for each variable.

public string $prefix = '--wpf-'

$variables

The variables to output.

public array<string|int, mixed> $variables = []

Methods

__construct()

Constructor.

public __construct() : mixed
Return values
mixed

get_prefix()

Get the prefix.

public get_prefix() : string
Return values
string

get_variables()

Get the variables.

public get_variables() : array<string|int, mixed>
Return values
array<string|int, mixed>

output()

Output the variables.

public output() : void
Return values
void

register()

public register() : mixed
Tags
inheritDoc
Return values
mixed

Search results