Abstract_Pattern
in package
Abstract class for block patterns.
Table of Contents
- $block_types : array<string|int, mixed>
- List of block types.
- $categories : array<string|int, mixed>
- List of categories.
- $inserter : bool
- Flag to enable/disable inserter.
- $name : string
- Name of the pattern.
- $namespace : string
- Namespace of the pattern.
- $source : string
- Source of the pattern.
- $template_types : array<string|int, string>
- List of template types.
- $viewport_width : int
- Viewport width.
- get_name() : string
- Get name of the pattern.
- get_namespace() : string
- Get namespace of the pattern.
- get_properties() : array<string|int, mixed>
- Return properties of the pattern.
- get_content() : string
- Get content.
- get_description() : string
- Get description.
- get_title() : string
- Get title.
Properties
$block_types
List of block types.
protected
array<string|int, mixed>
$block_types
= array()
$categories
List of categories.
protected
array<string|int, mixed>
$categories
= array()
$inserter
Flag to enable/disable inserter.
protected
bool
$inserter
= true
$name
Name of the pattern.
protected
string
$name
= ''
$namespace
Namespace of the pattern.
protected
string
$namespace
= ''
$source
Source of the pattern.
protected
string
$source
= 'plugin'
$template_types
List of template types.
protected
array<string|int, string>
$template_types
= array()
$viewport_width
Viewport width.
protected
int
$viewport_width
= 620
Methods
get_name()
Get name of the pattern.
public
get_name() : string
Return values
string —get_namespace()
Get namespace of the pattern.
public
get_namespace() : string
Return values
string —get_properties()
Return properties of the pattern.
public
get_properties() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_content()
Get content.
protected
abstract get_content() : string
Return values
string —get_description()
Get description.
protected
get_description() : string
Return values
string —get_title()
Get title.
protected
abstract get_title() : string