Breadcrumb constructor.

@return void
978099
protected function _constructCrumbs() {
		if (
			$this instanceof CakeErrorController
			|| $this instanceof PagesController
			|| false === Common::read('Layout.showCrumbs', true)
			|| false === $this->breadCrumbs
			|| !empty($this->breadCrumbs)
		) {
			return;
		}

		// Home.
		$this->breadCrumbs = array(__d('common', "Home") => '/');

		// Dashboard.
		if (CakePlugin::loaded('Users') && Reveal::is('User.loggedin')) {
			$this->breadCrumbs = array(
				__d('common', "Dashboard") => $this->Auth->loginRedirect
			);

			if (
				$this->request->controller == $this->Auth->loginRedirect['controller']
				&& preg_match('/' . $this->Auth->loginRedirect['action'] . '$/', $this->action)
				&& (empty($this->Auth->loginRedirect['plugin']) || $this->plugin == Inflector::camelize($this->Auth->loginRedirect['plugin']))
			) {
				$this->breadCrumbs[__d('common', "Dashboard")] = array();
				return;
			}
		}

		// Plugin.
		if (!empty($this->plugin)) {
			$title = empty($this->crumbTitles[$this->plugin]) ? $this->plugin : $this->crumbTitles[$this->plugin];
			$this->breadCrumbs[$title] = array('plugin' => Inflector::underscore($this->plugin), 'controller' => Inflector::underscore($this->plugin), 'action' => 'index');
			if (Router::normalize(Router::url($this->breadCrumbs[$title])) == $this->request->here) {
				$this->breadCrumbs[$title] = array();
			}

			if (($this->plugin == $this->name || (!empty($this->crumbTitles[$this->name]) && $this->plugin == $this->crumbTitles[$this->name])) && in_array('index', explode('_', $this->action))) {
				return;
			}
		}

		// Controller.
		if (!empty($this->crumbTitles[$this->name])) {
			$this->breadCrumbs[$this->crumbTitles[$this->name]] = array('action' => 'index');
		} else if (!array_key_exists($this->name, $this->crumbTitles)) {
			$this->breadCrumbs[!empty($this->modelName) ? Inflector::pluralize($this->modelName) : Inflector::humanize(Inflector::underscore($this->name))] = array('action' => 'index');
		}

		if (array_pop(explode('_', $this->action)) == 'index') {
			$this->breadCrumbs[end(array_keys($this->breadCrumbs))] = array();
			return;
		}

		// Action
		if (!empty($this->crumbTitles[$this->action])) {
			$this->breadCrumbs[$this->crumbTitles[$this->action]] = array();
		} else if (!array_key_exists($this->action, $this->crumbTitles)) {
			$action = str_replace($this->request->prefix, '', $this->action);
			if ($action == $this->action) {
				$action = str_replace(Configure::read($this->plugin . '.routingPrefixes.' . $this->request->prefix), '', $this->action);
			}
			$this->breadCrumbs[Inflector::humanize(Inflector::underscore($action))] = array();
		}

	}
670847
private function generateBreadcrumb()
    {
        $this->breadcrumbMenus = collect();
        $this->addBreadcrumbLink('Home', '/', 'home');

        $prevTitle = 'Home';
        $navs = $this->selectedNavigation->getParentsAndYou();
        foreach ($navs as $k => $nav) {

            if ($nav->title != $prevTitle) {
                $url = (is_slug_url($nav->slug) ? $nav->slug : url($nav->url));
                $this->addBreadcrumbLink($nav->title, $url);
            }

            $prevTitle = $nav->title;
        }
    }
809584
public function addBreadCrumbs($breadCrumbs = null) {
		if (empty($breadCrumbs) || !is_array($breadCrumbs)) {
			return;
		}

		foreach ($breadCrumbs as $breadCrumbInfo) {
			if (empty($breadCrumbInfo)) {
				continue;
			}

			$link = null;
			if (is_array($breadCrumbInfo)) {
				$name = array_shift($breadCrumbInfo);
				$link = array_shift($breadCrumbInfo);
			} else {
				$name = $breadCrumbInfo;
			}
			if (empty($name)) {
				continue;
			}

			$this->Html->addCrumb(h($name), $link);
		}
	}
12120
public function breadcrumbsAction() 
	{
	    $default = 'dashboard';
	    $id = $this->getRequest()->getQuery('id', $default);
	    $pos = strpos($id, '/');
	    $id = false !== $pos ? substr($id, 0, $pos) : $id;
        $view = $this->getServiceLocator()->get('Zend\View\Renderer\PhpRenderer');
        $navigation = $view->navigation('navigation');
        $container = $navigation->getContainer();
        $page = $container->findOneBy('fragment', $id);
        $page = null === $page ? $container->findOneBy('fragment', $default) : $page;
        $page->setActive(true);
        
        $viewModel = new ViewModel(array(
            'breadcrumbs' => $navigation->breadcrumbs()
        		->setPartial('breadcrumbs')->setRenderInvisible(true)->setMinDepth(0)
        ));
        $viewModel->setTerminal(true);
        
        return $viewModel;
	}
972120
function addBreadCrumb($route_name, $params = [], $replacements = []) {
        $url        = route($route_name, $params, false);
        $title                   = \LaraPage::pageTitle($route_name, $replacements);
        $h1                      = \LaraPage::pageH1($route_name, $replacements);
        $h1_ext                  = \LaraPage::pageH1Ext($route_name, $replacements);
        $description             = \LaraPage::pageH1Ext($route_name, $replacements);
        $icon                    = Route::routeIcons($route_name);
        $this->breadcrumbs[$url] = compact('title', 'icon');
        $this->setUrl($url);
        $_title = [];
        foreach($this->breadcrumbs as $url => $breadcrumb) {
            $_title[] = Arr::get($breadcrumb, 'title');
        }
        $_title = array_reverse($_title);
        $this->setTitle(implode(', ', $_title))->setDescription($description);

        return $this;
    }
554693
def breadcrumb(*args)
      @breadcrumbs ||= []

      args.each_slice(2).map do |pair|
        crumb       = Outpost::Breadcrumb.new
        crumb.title = pair[0]
        crumb.link  = pair[1]

        @breadcrumbs.push crumb
      end
    end
349596
protected function setBreadcrumbIndexOrder()
    {
        $breadcrumbs = array();

        $breadcrumbs[] = array(
            'url' => $this->url('admin'),
            'text' => $this->text('Dashboard')
        );

        $breadcrumbs[] = array(
            'text' => $this->text('Orders'),
            'url' => $this->url('admin/sale/order')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
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());
        }
    }
860011
public function Initialize() {
      parent::Initialize();
      $this->Menu->HighlightRoute('/messages/inbox');
      $this->SetData('Breadcrumbs', array(array('Name' => T('Inbox'), 'Url' => '/messages/inbox')));
//      $this->AddModule('MeModule');
      $this->AddModule('SignedInModule');
      $this->AddModule('NewConversationModule');
   }
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;
    }
242130
public function config()
    {
        $this->displayFormCommon('config');

        // Are we posting? If not so, handle this as a trigger to update.
        if ($this->registry->request->server['REQUEST_METHOD'] !== 'POST') {
            $this->doUpgrade();
        }

        // Add an intermediate level to the breadcrumb.
        $this->data['breadcrumbs'][] = $this->getExtensionsBreadcrumb();

        $this->renderFormCommon('config', 'button_save');
    }
562324
public function index()
    {
        //  Meta & Breadcrumbs
        $this->data['page']->title            = APP_NAME . ' Blog';
        $this->data['page']->seo->description = '';
        $this->data['page']->seo->keywords    = '';

        // --------------------------------------------------------------------------

        //  Handle pagination
        $page      = $this->uri->rsegment(3);
        $perPage  = appSetting('home_per_page', 'blog-' . $this->oBlog->id);
        $perPage  = $perPage ? $perPage : 10;

        $this->data['pagination']           = new stdClass();
        $this->data['pagination']->page     = $page;
        $this->data['pagination']->per_page = $perPage;

        // --------------------------------------------------------------------------

        //  Send any additional data
        $data                    = array();
        $data['include_body']    = !appSetting('use_excerpts', 'blog-' . $this->oBlog->id);
        $data['include_gallery'] = appSetting('home_show_gallery', 'blog-' . $this->oBlog->id);
        $data['sort']            = array('bp.published', 'desc');

        //  Only published items which are not schduled for the future
        $data['where']   = array();
        $data['where'][] = array('column' => 'blog_id',      'value' => $this->oBlog->id);
        $data['where'][] = array('column' => 'is_published', 'value' => true);
        $data['where'][] = array('column' => 'published <=', 'value' => 'NOW()', 'escape' => false);

        // --------------------------------------------------------------------------

        //  Load posts and count
        $this->data['posts'] = $this->blog_post_model->getAll($page, $perPage, $data);
        $this->data['pagination']->total = $this->blog_post_model->countAll($data);

        // --------------------------------------------------------------------------

        //  Widgets
        $this->fetchSidebarWidgets();

        // --------------------------------------------------------------------------

        $this->data['isIndex'] = true;

        // --------------------------------------------------------------------------

        //  Load views
        $oView = Factory::service('View');
        $oView->load('structure/header', $this->data);
        $this->loadView('browse', $this->data);
        $oView->load('structure/footer', $this->data);
    }
1264384
public static function addBreadcrumb(Breadcrumb $breadcrumb): void
    {
        $self = Hub::getCurrent()->getIntegration(self::class);

        if (!$self instanceof self) {
            return;
        }

        addBreadcrumb($breadcrumb);
    }
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;
    }
15393
protected function setBreadcrumbEditFile()
    {
        $breadcrumbs = array();

        $breadcrumbs[] = array(
            'url' => $this->url('admin'),
            'text' => $this->text('Dashboard')
        );

        $breadcrumbs[] = array(
            'url' => $this->url('admin/content/file'),
            'text' => $this->text('Files')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
902873
protected function setBreadcrumbViewHelp()
    {
        $breadcrumbs = array();

        $breadcrumbs[] = array(
            'url' => $this->url('admin'),
            'text' => $this->text('Dashboard')
        );

        $breadcrumbs[] = array(
            'url' => $this->url('admin/help'),
            'text' => $this->text('Help')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
1256734
public function setBreadcrumb(array $breadcrumb)
    {
        $key = '_breadcrumbs';

        if (!isset($this->data[$key])) {
            $this->data[$key] = array();
        }

        $this->data[$key][] = $breadcrumb;
    }