Generate the html for the breadcrumb
TODO - send this to view to add flexibility - or view composer
@return string
183006
private function breadcrumbHTML()
    {
        $html = '';
        $total = count($this->breadcrumbMenus) - 1;

        foreach ($this->breadcrumbMenus as $k => $menu) {

            if ($k == $total) {
                $html .= '<li>' . $menu['title'] . '</li>';
            }
            else {
                $html .= '<li><a tabindex="-1" href="' . $menu['url'] . '" class="' . $menu['class'] . '">' . $menu['title'] . '</a></li>';
            }
        }

        return $html;
    }
1107532
public function toHtml() {

        // Add the class at the last minute.
        if ($this->get_force_ltr()) {
            if (!isset($this->_attributes['class'])) {
                $this->_attributes['class'] = 'text-ltr';
            } else {
                $this->_attributes['class'] .= ' text-ltr';
            }
        }

        $this->_generateId();
        if ($this->_flagFrozen) {
            return $this->getFrozenHtml();
        }
        $html = $this->_getTabs() . '<input' . $this->_getAttrString($this->_attributes) . ' />';

        if ($this->_hiddenLabel){
            return '<label class="accesshide" for="'.$this->getAttribute('id').'" >'.
                        $this->getLabel() . '</label>' . $html;
        } else {
             return $html;
        }
    }
1044287
protected function getHtml()
    {
        array_walk($this->lines, 'trim');
        $html = trim(implode('', $this->lines));
        $this->lines = [];
        return $html;
    }
673778
public function firstFormated(): string
    {
        if ($this->isEmpty()) {
            return '';
        }

        $crumb = reset($this->breadcrumbs);

        return $this->renderCrumb($crumb['name'], $crumb['href'], false, 1);
    }
1358174
public function toHtml()
    {
        if ($this->numPages <= 1) {
            return '';
        }

        $html = '<ul class="pagination">';
        if ($this->getPrevUrl()) {
            $html .= '<li><a href="' . htmlspecialchars($this->getPrevUrl()) . '">&laquo; '. $this->previousText .'</a></li>';
        }

        foreach ($this->getPages() as $page) {
            if ($page['url']) {
                $html .= '<li' . ($page['isCurrent'] ? ' class="active"' : '') . '><a href="' . htmlspecialchars($page['url']) . '">' . htmlspecialchars($page['num']) . '</a></li>';
            } else {
                $html .= '<li class="disabled"><span>' . htmlspecialchars($page['num']) . '</span></li>';
            }
        }

        if ($this->getNextUrl()) {
            $html .= '<li><a href="' . htmlspecialchars($this->getNextUrl()) . '">'. $this->nextText .' &raquo;</a></li>';
        }
        $html .= '</ul>';

        return $html;
    }
1249040
public function generateCSS()
    {
        $result = '';

        $cssRaw       = '';
        $this->styles = array_unique($this->styles, SORT_REGULAR);
        foreach ($this->styles as $style) {
            if ($style[1]) {
                $cssRaw.=$style[0];
            } else {
                $result.='<link href="'.$style[0].'" rel="stylesheet" type="text/css" />';
            }
        }
        $result.=$cssRaw != '' ? '<style>'.$cssRaw.'</style>' : '';

        return $result;
    }
1162318
public function addBreadcrumb()
    {
        $this->updateBreadcrumbNode();

        $nodeId = $this->session->get('tl_page_node');

        if ($nodeId < 1) {
            return;
        }

        $trail = $this->getBreadcrumbTrail($nodeId);

        // Generate breadcrumb trail
        if (0 === count($trail)) {
            $this->session->set('tl_page_node', 0);

            return;
        }

        $this->checkTrailAccess($nodeId, $trail);
        $this->buildBreadcrumb($nodeId, $trail);
    }
958824
public function render(): string
    {
        $tag = $this->wrapperTagName
            ? new Tag($this->wrapperTagName, $this->htmlAttributes)
            : null;

        $contents = array_map([$this, 'renderItem'], $this->items);

        $wrappedContents = $tag ? $tag->withContents($contents) : implode('', $contents);

        $menu = $this->prepend.$wrappedContents.$this->append;

        if (! empty($this->wrap)) {
            return Tag::make($this->wrap[0], new Attributes($this->wrap[1]))->withContents($menu);
        }

        return $menu;
    }
312696
public function render()
    {
        if (empty($this->breadcrumbs)) {
            return '';
        }

        $cssClasses = implode(' ', $this->breadcrumbsCssClasses);

        return '<'. $this->listElement . ' itemscope itemtype="http://schema.org/BreadcrumbList"'
                .' class="' . $cssClasses .'">'
                . $this->renderCrumbs()
                . '</'. $this->listElement .'>';
    }
935038
protected function breadcrumbs() {

		// get category tree
		$parenttree = $this->getSkin()->getTitle()->getParentCategoryTree();
		$rendered = $this->getSkin()->drawCategoryBrowser( $parenttree );
		/*echo '<pre>';
		print_r($parenttree);
		print_r($rendered);
		echo '</pre>';*/
		//exit;
		// Skin object passed by reference cause it can not be
		// accessed under the method subfunction drawCategoryBrowser
		$temp = explode( "\n", $rendered );
		unset( $temp[0] );
		asort( $temp );

		if (empty($temp)) {
				return array();
		}
		$trees = array();
		foreach ($temp as $line) {
			preg_match_all('~<a[\S\s]+?</a>~', $line, $matches);
			$trees[] = $matches[0];
		}

		return $trees;
	}
636977
public function buildHtml()
	{
		$list	= array();
		$divs	= array();
		foreach( $this->steps as $nr => $step )
		{
			$id		= $this->id."_link".$nr;
			$list[]	= UI_HTML_Elements::ListItem( $step['label'], 0, array( 'id' => $id ) );
			$id		= $this->id."_".$nr;
			$divs[] = UI_HTML_Tag::create( 'div', $step['content'], array( 'id' => $id ) );
		}
		$list	= UI_HTML_Elements::unorderedList( $list );
		$divs	= implode( "\n", $divs );
		$div	= UI_HTML_Tag::create( 'div', "\n".$list.$divs."\n", array( 'id' => $this->id ) );
		return $div;
	}
182167
protected function settingsHtml(): string
    {
        //AdminBar::$plugin->bar->clearAdminBarCache();

        $settings = $this->getSettings();

        // Create one empty table row if non are present
        if (empty($settings->customLinks)) {
            $settings['customLinks'] = [['','',0]];
        }

        $adminBarWidgets = AdminBar::$plugin->bar->getAdminBarWidgetsFromPlugins();

        return Craft::$app->view->renderTemplate(
            'admin-bar/settings',
            [
                'widgets'  => $adminBarWidgets,
                'settings' => $settings
            ]
        );
    }
262639
public function getHtml(): string
  {
    $html = $this->prefix;
    $html .= Html::generateElement('span', $this->attributes, $this->innerHtml, true);
    $html .= $this->postfix;

    return $html;
  }
170671
public function render()
    {
        // Run only in case there are breadcrumbs
        if ($this->breadcrumbBag->has()) {
            $ulClass = $this->getOption('ulClass', 'breadcrumb');
            return $this->renderList($ulClass, $this->createBreadcrumbItems());
        }
    }
484899
public function getBreadCrumb()
    {
        $aPaths = [];
        $aPath = [];


        $iBaseLanguage = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        $aPath['title'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('PAY', $iBaseLanguage, false);
        $aPath['link'] = $this->getLink();

        $aPaths[] = $aPath;

        return $aPaths;
    }
1185921
private function createBreadcrumbItems()
    {
        $itemClass = $this->getOption('itemClass', null);
        $itemActiveClass = $this->getOption('itemActiveClass', 'active');
        $linkClass = $this->getOption('linkClass', null);

        $items = array();

        foreach ($this->breadcrumbBag->getBreadcrumbs() as $breadcrumb) {
            if ($breadcrumb->isActive()) {
                $items[] = $this->createListItem($itemActiveClass, $breadcrumb->getName());
            } else {
                $items[] = $this->createListItem($itemClass, $this->renderLink($breadcrumb->getName(), $breadcrumb->getLink(), $linkClass));
            }
        }

        return $items;
    }
1292049
function toHtml()
    {
        $tabs = $this->_getTabs();
        $html = "$tabs<a".$this->_getAttrString($this->_attributes).">";
        $html .= $this->_text;
        $html .= "</a>";
        return $html;
    }