API Docs for: 1.0.0
Show:

eZ.PluginRegistry Class

Plugin registry. It allows to register plugins by component.

Item Index

Methods

Properties

Methods

getPlugins

(
  • component
)
static

Returns the plugins registered for the component.

Parameters:

  • component String

    the identifier of the component

Returns:

Array

registerPlugin

(
  • constructor
  • components
)
static

Registers a plugin in the registry for the given components

Parameters:

  • constructor Function

    the constructor function of the plugin. It should have a NS static property to be considered as a valid plugin.

  • components Array

    array containing the string identifiers of the components that will be extended by the plugin

reset

() static

Resets the plugin registry

unregisterPlugin

(
  • ns
)
static

Removes a plugin from the registry based on its namespace.

Parameters:

  • ns String

    the namespace of the plugin to remove

Properties

_plugins

Object private static

Static property which holds the plugin constructors by component identifier.