EditorsRegistry

Implements EditorsRegistryInterface, DispatcherAwareInterface

Editor Registry class

final
since

5.0.0

package

Joomla CMS

Methods

add

Register element in registry, add new or override existing.

add(\Joomla\CMS\Editor\EditorProviderInterface instance) : \Joomla\CMS\Editor\EditorsRegistryInterface
since

5.0.0

Arguments

instance

EditorProviderInterface

Response

EditorsRegistryInterface

get

Return element by name.

get( name) : \Joomla\CMS\Editor\EditorProviderInterface
throws

EditorNotFoundException

since

5.0.0

Arguments

name

stringElement name

Response

EditorProviderInterface

getAll

Return list of all registered elements

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

5.0.0

Response

array<string|int, EditorProviderInterface>

has

Check whether the element exists in the registry.

has( name) : 
since

5.0.0

Arguments

name

stringElement name

Response

bool

initRegistry

Trigger event to allow register the element through plugins.

initRegistry() : \Joomla\CMS\Editor\EditorsRegistryInterface
since

5.0.0

Response

EditorsRegistryInterface

Properties

registry

List of registered elements

since

5.0.0

Type(s)

array<string|int, EditorProviderInterface>

initialised

Internal flag of initialisation

since

5.0.0

Type(s)

bool