Craft Themes (3.x)

BlockProvidersService extends Component
in package

Table of Contents

EVENT_REGISTER_BLOCK_PROVIDERS  = 'block_providers'
Register block providers event key
$_providers  : array<string|int, BlockProviderInterface>
getAll()  : array<string|int, BlockProviderInterface>
Get all block providers
getByHandle()  : BlockProviderInterface
Get provider by handle
has()  : bool
Is a provider's handle defined
reset()  : mixed
Reset internal cache, used for tests only
register()  : mixed
Registers block providers

Constants

EVENT_REGISTER_BLOCK_PROVIDERS

Register block providers event key

public string EVENT_REGISTER_BLOCK_PROVIDERS = 'block_providers'

Properties

Methods

has()

Is a provider's handle defined

public has(string $handle) : bool
Parameters
$handle : string
Return values
bool

reset()

Reset internal cache, used for tests only

public reset() : mixed
Return values
mixed

Search results