eZ.PluginRegistry Class
Plugin registry. It allows to register plugins by component.
Item Index
Methods
- getPlugins static
- registerPlugin static
- reset static
- unregisterPlugin static
Properties
- _plugins static
Methods
getPlugins
(
static
-
component
Returns the plugins registered for the component.
Parameters:
-
component
Stringthe identifier of the component
Returns:
Array
registerPlugin
(
static
-
constructor
-
components
Registers a plugin in the registry for the given components
Parameters:
-
constructor
Functionthe constructor function of the plugin. It should have a
NS
static property to be considered as a valid plugin. -
components
Arrayarray containing the string identifiers of the components that will be extended by the plugin
reset
()
static
Resets the plugin registry
unregisterPlugin
(
static
-
ns
Removes a plugin from the registry based on its namespace.
Parameters:
-
ns
Stringthe namespace of the plugin to remove
Properties
_plugins
Object
private
static
Static property which holds the plugin constructors by component identifier.