Defines an object which stores multiple plugin instances to lazy load them.
The \ArrayAccess implementation is only for backwards compatibility, it is deprecated and should not be used by new code.
Expanded class hierarchy of PluginBag
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginBag:: |
protected | property | Stores the IDs of all potential plugin instances. | |
PluginBag:: |
protected | property | Stores all instantiated plugins. | |
PluginBag:: |
public | function | Adds an instance ID to the array of available instance IDs. | |
PluginBag:: |
public | function | Clears all instantiated plugins. | 1 |
PluginBag:: |
public | function | Implements \Countable::count(). | |
PluginBag:: |
public | function | Implements \Iterator::current(). | |
PluginBag:: |
public | function | Retrieves a plugin instance, initializing it if necessary. | |
PluginBag:: |
public | function | Returns all instance IDs. | |
PluginBag:: |
public | function | Determines if a plugin instance exists. | |
PluginBag:: |
abstract protected | function | Initializes a plugin and stores the result in $this->pluginInstances. | 6 |
PluginBag:: |
public | function | Implements \Iterator::key(). | |
PluginBag:: |
public | function | Implements \Iterator::next(). | |
PluginBag:: |
public | function | Removes an initialized plugin. | 1 |
PluginBag:: |
public | function | Implements \Iterator::rewind(). | |
PluginBag:: |
public | function | Stores an initialized plugin. | |
PluginBag:: |
public | function | Sets the instance IDs property. | |
PluginBag:: |
public | function | Implements \Iterator::valid(). |