You are here

protected function crumbs_CurrentPageInfo::breadcrumbItems in Crumbs, the Breadcrumbs suite 7.2

Build altered breadcrumb items.

Return value

array

See also

crumbs_CurrentPageInfo::$breadcrumbItems

File

lib/CurrentPageInfo.php, line 249

Class

crumbs_CurrentPageInfo
Creates various data related to the current page.

Code

protected function breadcrumbItems() {
  $breadcrumb_items = $this->rawBreadcrumbItems;
  if (empty($breadcrumb_items)) {
    return array();
  }
  $router_item = $this->router
    ->getRouterItem($this->path);

  // Allow modules to alter the breadcrumb, if possible, as that is much
  // faster than rebuilding an entirely new active trail.

  /* @see hook_menu_breadcrumb_alter() */
  drupal_alter('menu_breadcrumb', $breadcrumb_items, $router_item);
  return $breadcrumb_items;
}