public function add($url, $title = '', $parameters = [])
    {
        // If only {$url} specified, use it as title for current page
        if (func_num_args() === 1) {
            return $this->addCurrent($url);
        }

        $url = $this->parseUrl($url, $parameters);

        $this->crumbs[] = new CrumbsItem($url, $title, $this->url, $this->config);

        return $this;
    }
public function add($url, $title = '', $parameters = [])
    {
        // If only {$url} specified, use it as title for current page
        if (func_num_args() === 1) {
            return $this->addCurrent($url);
        }

        $url = $this->parseUrl($url, $parameters);

        $this->crumbs[] = new CrumbsItem($url, $title, $this->url, $this->config);

        return $this;
    }
public function add ( $ url , $ title = '' , $ parameters = [ ] ) { // If only {$url} specified, use it as title for current page if ( func_num_args ( ) === 1 ) { return $ this -> addCurrent ( $ url ) ; } $ url = $ this -> parseUrl ( $ url , $ parameters ) ; $ this -> crumbs [ ] = new CrumbsItem ( $ url , $ title , $ this -> url , $ this -> config ) ; return $ this ; }
Add new item to the breadcrumbs array.

@param string $url
@param string $title
@param array  $parameters

@return $this
Add new item to the breadcrumbs array .