public function add($title, $url = null, array $options = [])
    {
        $options = optionsParser($options)->append('class', 'breadcrumb-item');

        return parent::add($title, $url, $options->toArray());
    }
public function add($title, $url = null, array $options = [])
    {
        $options = optionsParser($options)->append('class', 'breadcrumb-item');

        return parent::add($title, $url, $options->toArray());
    }
public function add ( $ title , $ url = null , array $ options = [ ] ) { $ options = optionsParser ( $ options ) -> append ( 'class' , 'breadcrumb-item' ) ; return parent :: add ( $ title , $ url , $ options -> toArray ( ) ) ; }
Add a crumb to the end of the trail
@param string|array $title If provided as a string, it represents the
title of the crumb. Alternatively you can provide an array, with each
values being a single crumb. Arrays are expected to be of this form:
- *title* The title of the crumb
- *link* The link of the crumb
- *options* Options of the crumb
@param string|array|null $url URL of the crumb. Either a string, an array
of route params to pass to Url::build() or null/empty
@param array $options Array of options. These options will be used as
attributes HTML attribute the crumb will be rendered in (a <li> tag by
default). It accepts two special keys:
- *innerAttrs*: An array that allows you to define attributes for the
inner element of the crumb (by default, to the link)
- *templateVars*: Specific template vars in case you override the
templates provided
@return $this
@since 2.16.0
Add a crumb to the end of the trail