public function createActiveItem($text, $title = '')
    {
        $breadcrumb = new BreadcrumbObject();

        $breadcrumb->setText($text);
        $breadcrumb->setActive(true);

        if ($title) {
            $breadcrumb->setTitle($title);
        }

        $this->breadcrumbs[] = $breadcrumb;

        return $breadcrumb;
    }
public function createActiveItem($text, $title = '')
    {
        $breadcrumb = new BreadcrumbObject();

        $breadcrumb->setText($text);
        $breadcrumb->setActive(true);

        if ($title) {
            $breadcrumb->setTitle($title);
        }

        $this->breadcrumbs[] = $breadcrumb;

        return $breadcrumb;
    }
public function createActiveItem ( $ text , $ title = '' ) { $ breadcrumb = new BreadcrumbObject ( ) ; $ breadcrumb -> setText ( $ text ) ; $ breadcrumb -> setActive ( true ) ; if ( $ title ) { $ breadcrumb -> setTitle ( $ title ) ; } $ this -> breadcrumbs [ ] = $ breadcrumb ; return $ breadcrumb ; }
Creates an active breadcrumb object and adds it to the crumbs list.

@param string $text Text to show
@param string $title Title to use

@return \Core\Html\Bootstrap\Breadcrumb\BreadcrumbObject
Creates an active breadcrumb object and adds it to the crumbs list .