ButtonsRegistryInterface

Buttons Registry class

since

5.0.0

package

Joomla CMS

Methods

add

Register element in registry, add new or override existing.

add(\Joomla\CMS\Editor\Button\ButtonInterface instance) : 
since

5.0.0

Arguments

instance

ButtonInterface

Response

static

getAll

Return list of all registered elements

getAll() : \Joomla\CMS\Editor\Button\ButtonInterface||string|int
since

5.0.0

Response

array<string|int, ButtonInterface>

initRegistry

Initialise the registry, eg: auto-register elements.

initRegistry(mixed||string|int options = []) : \Joomla\CMS\Editor\Button\ButtonsRegistryInterface
since

5.0.0

Arguments

options

array<string|int, mixed>Extra data with editor information.

Response

ButtonsRegistryInterface