function crumbs_PluginSystem_PluginEngine::decorateBreadcrumb in Crumbs, the Breadcrumbs suite 7.2
Ask applicable plugins to "decorate" (alter) the breadcrumb.
Parameters
array $breadcrumb:
File
- lib/
PluginSystem/ PluginEngine.php, line 37
Class
Code
function decorateBreadcrumb($breadcrumb) {
$iterator = $this->pluginBag
->getDecorateBreadcrumbPlugins();
foreach ($iterator as $plugin_key => $plugin) {
if (!method_exists($plugin, 'decorateBreadcrumb')) {
// This means the code has changed, without the cache being cleared.
// It is the user's responsibility to clear the cache.
// Until then, we simply ignore and move on.
continue;
}
$plugin
->decorateBreadcrumb($breadcrumb);
}
}