Blocks

Trait_Has_Modifier_Classes

Trait for managing block modifier classes.

Table of Contents

Methods

get_modifier_class_string()  : string
Returns a string of additional classes to be added to block wrappers.
modifier_classes()  : array<string|int, mixed>
Returns an array of single terms (no prefix) to be converted to modifier classes.

Methods

get_modifier_class_string()

Returns a string of additional classes to be added to block wrappers.

public get_modifier_class_string([string $base_class = 'example-block__wrapper' ]) : string
Parameters
$base_class : string = 'example-block__wrapper'

The base class that modifiers should be appended to.

Return values
string

A string of additional classes.

modifier_classes()

Returns an array of single terms (no prefix) to be converted to modifier classes.

protected abstract modifier_classes() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of terms.


        
On this page

Search results