/** * @param string $parent_raw * * @return string */ protected function processFindParent($parent_raw) { if ($this->router->urlIsExternal($parent_raw)) { // Always discard external paths. return NULL; } return $this->router->getNormalPath($parent_raw); }
/** * Build altered breadcrumb items. * * @return array * * @see crumbs_CurrentPageInfo::$breadcrumbItems */ 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. drupal_alter('menu_breadcrumb', $breadcrumb_items, $router_item); return $breadcrumb_items; }