protected function renderCrumb($name, $href, $isLast = false, $position = null): string
    {
        $positionAttribute = '';
        if ($this->getOption('position')) {
            $positionAttribute = "data-position=\"{$position}\"";
        }

        if ($isLast) {
            $element = $this->getOption('listActiveElement');
            $classes = $this->getClasses('listActiveElementClasses');

            return "<{$element} {$positionAttribute} class=\"{$classes}\">{$name}</{$element}>";
        }
        $element = $this->getOption('listItemElement');
        $classes = $this->getClasses('listItemElementClasses');

        $divider = '';

        if ($this->getDivider() !== null) {
            $divider = $this->getDivider();
            $dividerElement = $this->getOption('dividerElement');
            $dividerClasses = $this->getClasses('dividerElementClasses');

            $divider = "<{$dividerElement} class=\"{$dividerClasses}\">{$divider}</{$dividerElement}>";
        }

        return "<{$element} {$positionAttribute} class=\"{$classes}\" href=\"{$href}\">{$name}</{$element}>{$divider}";
    }