/** * Add an item to the breadcrumbs. * If no parameters specified, return an instance of Crumbs. * * @param string $url * @param string $title * @param array $parameters * * @return Crumbs */ function crumbs($url = '', $title = '', $parameters = []) { if (func_num_args() === 0) { return Crumbs::getInstance(); } elseif (func_num_args() === 1) { return Crumbs::addCurrent($url); } return Crumbs::add($url, $title, $parameters); }
/** * Adds a crumbs link * @param string $url * @param string $title * @return $this */ protected function addNavigation($url, $title) { \Crumbs::add($url, $title); return $this; }