BlockProviderInterface
in
A block provider, can define several blocks. Their blocks can be modified through events.
Table of Contents
- EVENT_REGISTER_BLOCKS = 'register_blocks'
- createBlock() : BlockInterface
- Get a block instance
- getBlocks() : array<string|int, BlockInterface>
- Get all defined blocks as objects
- getDefinedBlocks() : array<string|int, string>
- Get all defined blocks classes
- getHandle() : string
- Handle getter
- getName() : string
- Name getter
Constants
EVENT_REGISTER_BLOCKS
public
mixed
EVENT_REGISTER_BLOCKS
= 'register_blocks'
Methods
createBlock()
Get a block instance
public
createBlock(string $handle) : BlockInterface
Parameters
- $handle : string
Return values
BlockInterface —getBlocks()
Get all defined blocks as objects
public
getBlocks() : array<string|int, BlockInterface>
Return values
array<string|int, BlockInterface> —getDefinedBlocks()
Get all defined blocks classes
public
getDefinedBlocks() : array<string|int, string>
Return values
array<string|int, string> —getHandle()
Handle getter
public
getHandle() : string
Return values
string —getName()
Name getter
public
getName() : string