$plugins
$plugins : array
Plugin list
Plugin Collection
Holds onto plugin objects loaded into an application, and provides methods for iterating, and finding plugins based on criteria.
This class implements the Iterator interface to allow plugins to be iterated, handling the situation where a plugin's hook method (usually bootstrap) loads another plugin during iteration.
add(\Cake\Core\PluginInterface $plugin) : $this
Add a plugin to the collection
Plugins will be keyed by their names.
\Cake\Core\PluginInterface | $plugin | The plugin to load. |
get(string $name) : \Cake\Core\PluginInterface
Get the a plugin by name
string | $name | The plugin to get. |
when unknown plugins are fetched.
The plugin.
current() : \Cake\Core\PluginInterface
Part of Iterator Interface
Loading…