public function render($options = [])
    {
        $items = $this->getStack();
        $options = Hash::merge([
            'breadcrumbGuessing' => false,
            'class' => 'breadcrumb',
            'templates' => [
                'root' => '<ol{{attrs}}>{{content}}</ol>',
            ],
            'formatter' => function ($entity, $info) {
                $options = [];
                if ($info['index'] === $info['total']) {
                    $options['childAttrs'] = ['class' => 'active'];
                    $options['templates']['link'] = '{{content}}';
                }

                return $this->Menu->formatter($entity, $info, $options);
            }
        ], $options);

        return $this->Menu->render($items, $options);
    }
public function render($options = [])
    {
        $items = $this->getStack();
        $options = Hash::merge([
            'breadcrumbGuessing' => false,
            'class' => 'breadcrumb',
            'templates' => [
                'root' => '<ol{{attrs}}>{{content}}</ol>',
            ],
            'formatter' => function ($entity, $info) {
                $options = [];
                if ($info['index'] === $info['total']) {
                    $options['childAttrs'] = ['class' => 'active'];
                    $options['templates']['link'] = '{{content}}';
                }

                return $this->Menu->formatter($entity, $info, $options);
            }
        ], $options);

        return $this->Menu->render($items, $options);
    }
public function render ( $ options = [ ] ) { $ items = $ this -> getStack ( ) ; $ options = Hash :: merge ( [ 'breadcrumbGuessing' => false , 'class' => 'breadcrumb' , 'templates' => [ 'root' => '<ol{{attrs}}>{{content}}</ol>' , ] , 'formatter' => function ( $ entity , $ info ) { $ options = [ ] ; if ( $ info [ 'index' ] === $ info [ 'total' ] ) { $ options [ 'childAttrs' ] = [ 'class' => 'active' ] ; $ options [ 'templates' ] [ 'link' ] = '{{content}}' ; } return $ this -> Menu -> formatter ( $ entity , $ info , $ options ) ; } ] , $ options ) ; return $ this -> Menu -> render ( $ items , $ options ) ; }
Renders a breadcrumb menu list.

This methods renders an `<ol>` HTML menu using `MenuHelper` class, check this
class for more information about valid options.

@param array $options Array of options for `MenuHelper::render()` method
@return string HTML
@see \Menu\View\Helper\MenuHelper::render()
Renders a breadcrumb menu list .