private function crumbs_InjectedAPI_hookCrumbsPlugins::addPlugin in Crumbs, the Breadcrumbs suite 7.2
Parameters
crumbs_PluginInterface $plugin:
string $plugin_key:
string|null $route:
Throws
Exception
1 call to crumbs_InjectedAPI_hookCrumbsPlugins::addPlugin()
- crumbs_InjectedAPI_hookCrumbsPlugins::addPluginByType in lib/
InjectedAPI/ hookCrumbsPlugins.php
File
- lib/
InjectedAPI/ hookCrumbsPlugins.php, line 269
Class
- crumbs_InjectedAPI_hookCrumbsPlugins
- API object to be used as an argument for hook_crumbs_plugins() This is a sandbox class, currently not used..
Code
private function addPlugin(crumbs_PluginInterface $plugin, $plugin_key, $route = NULL) {
$this->pluginCollection
->addPlugin($plugin, $plugin_key, $route);
}