Since: 5.0.0

interface EditorsRegistryInterface

Interface for Editor Registry classes

Methods

bool
has(string $name)

Check whether the element exists in the registry.

get(string $name)

Return element by name.

add(EditorProviderInterface $instance)

Register element in registry, add new or override existing.

array
getAll()

Return list of all registered elements

initRegistry()

Initial set up of the registry elements through plugins etc.

Details

bool has(string $name)

Since: 5.0.0

Check whether the element exists in the registry.

Parameters

string $name

Element name

Return Value

bool

EditorProviderInterface get(string $name)

Since: 5.0.0

Return element by name.

Parameters

string $name

Element name

Return Value

EditorProviderInterface

Exceptions

EditorNotFoundException

EditorsRegistryInterface add(EditorProviderInterface $instance)

Since: 5.0.0

Register element in registry, add new or override existing.

Parameters

EditorProviderInterface $instance

Return Value

EditorsRegistryInterface

array getAll()

Since: 5.0.0

Return list of all registered elements

Return Value

array

EditorsRegistryInterface initRegistry()

Since: 5.0.0

Initial set up of the registry elements through plugins etc.