You are here

decorateBreadcrumb.php in Crumbs, the Breadcrumbs suite 7

File

lib/PluginOperation/decorateBreadcrumb.php
View source
<?php

class crumbs_PluginOperation_decorateBreadcrumb implements crumbs_PluginOperationInterface_alter {
  protected $breadcrumb;
  function __construct(array &$breadcrumb) {
    $this->breadcrumb =& $breadcrumb;
  }
  function invoke($plugin, $plugin_key) {
    if (method_exists($plugin, 'decorateBreadcrumb')) {
      $plugin
        ->decorateBreadcrumb($this->breadcrumb);
    }
  }

}