BootstrapUI\View\Helper\HtmlHelper::getCrumbList PHP Method

getCrumbList() public method

This method uses HtmlHelper::tag() to generate list and its elements. Works similar to HtmlHelper::getCrumbs(), so it uses options which every crumb was added with. ### Options - separator Separator content to insert in between breadcrumbs, defaults to '' - firstClass Class for wrapper tag on the first breadcrumb, defaults to 'first' - lastClass Class for wrapper tag on current active page, defaults to 'last'
public getCrumbList ( array $options = [], string | array | boolean $startText = false ) : string | null
$options array Array of HTML attributes to apply to the generated list elements.
$startText string | array | boolean This will be the first crumb, if false it defaults to first crumb in array. Can also be an array, see `HtmlHelper::getCrumbs` for details.
return string | null Breadcrumbs HTML list.
    public function getCrumbList(array $options = [], $startText = false)
    {
        $options += ['separator' => ''];
        return parent::getCrumbList($this->injectClasses('breadcrumb', $options), $startText);
    }