Creates breadcrumb html content or returns it's data-

@param boolean $data_only
Set to true if you want to get get only the data without a generated html

@return string|array
485978
final protected function getBreadcrumbs($data_only = false)
    {
        $breadcrumbs = $this->page->breadcrumbs->getBreadcrumbs();

        if ($data_only) {
            return $breadcrumbs;
        }

        // Add home button
        $text = $this->page->txt('home');

        if ($breadcrumbs) {
            $home_crumb = $this->page->breadcrumbs->createItem($text, BASEURL, $text);
        }
        else {
            $home_crumb = $this->page->breadcrumbs->createActiveItem($text, $text);
        }

        array_unshift($breadcrumbs, $home_crumb);

        ob_start();

        if ($breadcrumbs) {

            echo '<ol class="breadcrumb">';

            foreach ($breadcrumbs as $breadcrumb) {

                echo '<li';

                if ($breadcrumb->getActive()) {
                    echo ' class="active">' . $breadcrumb->getText();
                }
                else {
                    echo '><a href="' . $breadcrumb->getHref() . '">' . $breadcrumb->getText() . '</a>';
                }

                echo '</li>';
            }

            echo '</ol>';
        }

        return ob_get_clean();
    }
790022
public function getBreadcrumb(): Breadcrumb
	{
		if ($this->breadcrumb === null) {
			$this->breadcrumb = new Breadcrumb($this->translator);

			if ($this->baseUrl !== null) {
				$this->breadcrumb->addLink($this->baseUrl->name, $this->baseUrl->link);
			}

			$current = $this->setCurrent();
			if ($current !== null) {
				$links = $current->getActualLinks();
				foreach (array_reverse($links) as $link) {
					/* @var $link Link */
					$this->breadcrumb->addLink($link->getName(false), $link->link, $link->arguments);
				}
			}
		}
		return $this->breadcrumb;
	}
1331172
public function createBreadcrumb()
    {
        if (null === $this->breadcrumb) {
            $this->breadcrumb = $this->factory->createItem('root', [
                'childrenAttributes' => [
                    'class' => 'breadcrumb hidden-xs'
                ]
            ]);
            $this->breadcrumb->addChild('dashboard', ['route' => 'ekyna_admin_dashboard'])->setLabel('ekyna_admin.dashboard');
        }
        return $this->breadcrumb;
    }
1229413
public static function saveDataAsHtml($data)
	{
		$html='';
		if(is_array($data))
		{
			foreach($data as $node)
			{
				if(!isset($node['text']))
					continue;

				if(isset($node['expanded']))
					$css=$node['expanded'] ? 'open' : 'closed';
				else
					$css='';

				if(isset($node['hasChildren']) && $node['hasChildren'])
				{
					if($css!=='')
						$css.=' ';
					$css.='hasChildren';
				}

				$options=isset($node['htmlOptions']) ? $node['htmlOptions'] : array();
				if($css!=='')
				{
					if(isset($options['class']))
						$options['class'].=' '.$css;
					else
						$options['class']=$css;
				}

				if(isset($node['id']))
					$options['id']=$node['id'];

				$html.=CHtml::tag('li',$options,$node['text'],false);
				if(!empty($node['children']))
				{
					$html.="\n<ul>\n";
					$html.=self::saveDataAsHtml($node['children']);
					$html.="</ul>\n";
				}
				$html.=CHtml::closeTag('li')."\n";
			}
		}
		return $html;
	}
1129176
function getContentItemSelection($data=false)
    {
        if ( ! $data ) $data = LTIX::ltiRawParameter('data');
        return parent::getContentItemSelection($data);
    }
973843
function get_data() {
        $data = parent::get_data();

        if ($data !== null and isset($data->description)) {
            $data->descriptionformat = $data->description['format'];
            $data->description = $data->description['text'];
        }

        return $data;
    }
771942
public function getBreadcrumbs()
    {
        $params = $this->getSourceParams();

        // Only apply breadcrumbs if a "ClassName" filter is applied. This implies that we came from the
        // "element type report".
        if (!isset($params[static::CLASS_NAME_FILTER_KEY])) {
            return [];
        }

        $report = ElementTypeReport::create();

        return [ArrayData::create([
            'Title' => $report->title(),
            'Link' => $report->getLink(),
        ])];
    }
29373
public function Breadcrumbs()
    {
        $basePath = str_replace(Director::protocolAndHost(), '', Director::absoluteBaseURL());
        $relPath = parse_url(
            substr($_SERVER['REQUEST_URI'], strlen($basePath), strlen($_SERVER['REQUEST_URI'])),
            PHP_URL_PATH
        );
        $parts = explode('/', $relPath);
        $base = Director::absoluteBaseURL();
        $pathPart = "";
        $pathLinks = array();
        foreach ($parts as $part) {
            if ($part != '') {
                $pathPart .= "$part/";
                $pathLinks[] = "<a href=\"$base$pathPart\">$part</a>";
            }
        }
        return implode('&nbsp;&rarr;&nbsp;', $pathLinks);
    }
766913
public function &createXML($node_name, $data = [])
    {
        $xml = $this->getXMLRoot();
        $xml->appendChild($this->convert($node_name, $data));
        $this->xml = null;    // clear the xml node in the class for 2nd time use.
        return $xml;
    }
1337609
public function getBreadCrumb()
    {
        $aPaths = [];
        $aPath = [];
        $oUtils = \OxidEsales\Eshop\Core\Registry::getUtilsUrl();
        $iBaseLanguage = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        $sSelfLink = $this->getViewConfig()->getSelfLink();

        $aPath['title'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('MY_ACCOUNT', $iBaseLanguage, false);
        $aPath['link'] = \OxidEsales\Eshop\Core\Registry::getSeoEncoder()->getStaticUrl($sSelfLink . 'cl=account');
        $aPaths[] = $aPath;

        $aPath['title'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NEWSLETTER_SETTINGS', $iBaseLanguage, false);
        $aPath['link'] = $oUtils->cleanUrl($this->getLink(), ['fnc']);
        $aPaths[] = $aPath;

        return $aPaths;
    }
833872
final protected function getContent($data_only = false, $fluid = false)
    {
        if ($data_only) {
            return $this->page->getContent();
        }

        return '<div id="content" class="container' . ($fluid ? '-fluid' : '') . '">' . $this->page->getContent() . '</div>';
    }
1217088
public function get_data() {

		$data           = [
			$this->slug => [],
		];
		$this->instance = 0;
		$has_data       = true;
		while ( true === $has_data ) {
			$this_data = $this->get_child_data();
			$this_data = array_filter( $this_data );
			if ( ! empty( $this_data ) ) {
				$data[ $this->slug ][] = $this_data;
			} else {
				$has_data = false;
			}
			$this->instance ++;
		}

		return $data;
	}
488528
public function getBreadcrumbItems($maxDepth = 20, $stopAtPageType = false, $showHidden = false)
    {
        // Obtain Model Breadcrumb Items:
        
        $items = $this->owner->data()->getBreadcrumbItems($maxDepth, $stopAtPageType, $showHidden);
        
        // Obtain Extra Breadcrumb Items:
        
        $extra = $this->owner->getExtraBreadcrumbItems();
        
        // Check Breadcrumb Item Instances:
        
        $extra->each(function ($item) {
            
            if (!($item instanceof SiteTree) && !($item instanceof Crumbable)) {
                
                throw new Exception(
                    sprintf(
                        'Item of class "%s" is not a SiteTree object or an implementor of Crumbable',
                        get_class($item)
                    )
                );
                
            }
            
        });
        
        // Merge Extra Breadcrumb Items:
        
        $items->merge($extra);
        
        // Answer Breadcrumb Items:
        
        return $items;
    }
920386
public function getBreadCrumb()
    {
        $paths = [];

        if ('oxmore' == \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid')) {
            $path = [];
            $path['title'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString(
                'CATEGORY_OVERVIEW',
                \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage(),
                false
            );
            $path['link'] = $this->getLink();

            $paths[] = $path;

            return $paths;
        }

        if (($categoryTree = $this->getCategoryTree()) && ($categoryPaths = $categoryTree->getPath())) {
            foreach ($categoryPaths as $category) {
                /** @var \OxidEsales\Eshop\Application\Model\Category $category */
                $categoryPath = [];

                $categoryPath['link'] = $category->getLink();
                $categoryPath['title'] = $category->oxcategories__oxtitle->value;

                $paths[] = $categoryPath;
            }
        }

        return $paths;
    }
805706
function toHtml ($in_data = null)
    {
        if (!is_null($in_data)) {
            $this->addElement('html', $in_data);
        }
        $renderer =& $this->defaultRenderer();
        $this->accept($renderer);
        return $renderer->toHtml();
    }
598047
public function getBreadcrumb(Page $page = null, $breadcrumb = array())
    {
        if (null === $this->breadcrumb) {
            $page = (null !== $page) ? $page : $this;
            $breadcrumb[] = $page;
            if (null !== $page->getParent()) {
                return $this->getBreadcrumb($page->getParent(), $breadcrumb);
            } else {
                $this->breadcrumb = $breadcrumb;
            }
        }

        return $this->breadcrumb;
    }
697452
public function getCellView($cell_data, array $row_data = [])
    {
        if ($this->tooltip_field && $row_data) {
            $this->requireTooltipJavascript();
            $tooltip = $this->replaceTemplateVars($row_data, $this->tooltip_field);

            if ($tooltip) {
                return '<td' . $this->getAttributesView(0, $row_data) . ' tooltip="' . nl2br(htmlspecialchars($tooltip, ENT_QUOTES)) . '" onmouseover="cmsTooltip.show(this,' . $this->tooltip_field_colspan . ')" onmouseout="cmsTooltip.hide(this)">' . $cell_data . '</td>';
            }
        }

        // Order for drag-and-drop
        if ($this instanceof ColumnOrder && isset($row_data['order']) && $this->isDragable()) {
            $this->addDataAttribute('order', $row_data['order']);
        }

        // Cut long strings
        if ($this->cut_long_strings && $cell_data === strip_tags((string)$cell_data)) {
            $cell_data = Converter::cutLongStrings((string)$cell_data, $this->cut_long_strings_limit);
        }

        return '<td' . $this->getAttributesView(false, $row_data) . '>' . $cell_data . '</td>';
    }