Craft Themes (3.x)

BlockProviderInterface

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

Methods

getDefinedBlocks()

Get all defined blocks classes

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

Search results