--------------
 Use this method to add breadcrumbs.
 See Outpost::Breadcrumbs
 for usage.
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
897907
public function breadcrumbs_add($url, $name, $active = true, $class = '', $children = array()) {
		if (!isset($this->controller)) {
			return false;
		}
		$this->controller->breadcrumbs[] = (object)array('url' => $url, 'name' => $name, 'active' => $active, 'class' => $class, 'children' => $children);
		return true;
	}
545872
protected function setBreadcrumbEditProduct()
    {
        $breadcrumbs = array();

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

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

        $this->setBreadcrumbs($breadcrumbs);
    }
1159447
function breadcrumb() {
        const $breadcrumb = $(`.${namespace}-breadcrumbs`).empty();

        chain().each(function () {
            const $crumb = $(this);
            $(`<span class="${namespace}-breadcrumb">`).text($crumb.text().trim()).click(function () {
                $crumb.click();
            }).appendTo($breadcrumb);
        });
    }
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;
    }
453038
protected function setBreadcrumbEditCity()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/settings/country'),
            'text' => $this->text('Countries')
        );

        $breadcrumbs[] = array(
            'url' => $this->url("admin/settings/states/{$this->data_country['code']}"),
            'text' => $this->text('Country states of %name', array('%name' => $this->data_country['name']))
        );

        $breadcrumbs[] = array(
            'url' => $this->url("admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}"),
            'text' => $this->text('Cities of state %name', array('%name' => $this->data_state['name']))
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
240337
public function addBreadcrumbs(array $breadcrumbs = [])
    {
        foreach ($breadcrumbs as $breadcrumb) {
            $this->addCrumb(
                isset($breadcrumb['name']) ? $breadcrumb['name'] : '',
                isset($breadcrumb['href']) ? $breadcrumb['href'] : ''
            );
        }

        return $this;
    }
420746
protected function setBreadcrumbEditAccount()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Account'),
            'url' => $this->url("account/{$this->data_user['user_id']}")
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
957761
public static function addBreadcrumbList()
    {
        $view = Yii::$app->getView();

        $breadcrumbList = [];
        if (isset($view->params['breadcrumbs'])) {
            $position = 1;
            foreach ($view->params['breadcrumbs'] as $breadcrumb) {
                if (is_array($breadcrumb)) {
                    $breadcrumbList[] = (object)[
                        "@type" => "http://schema.org/ListItem",
                        "http://schema.org/position" => $position,
                        "http://schema.org/item" => (object)[
                            "@id" => Url::to($breadcrumb['url'], true),
                            "http://schema.org/name" => $breadcrumb['label'],
                        ]
                    ];
                } else {
                    // Is it ok to omit URL here or not? Google is not clear on that:
                    // http://stackoverflow.com/questions/33688608/how-to-markup-the-last-non-linking-item-in-breadcrumbs-list-using-json-ld
                    $breadcrumbList[] = (object)[
                        "@type" => "http://schema.org/ListItem",
                        "http://schema.org/position" => $position,
                        "http://schema.org/item" => (object)[
                            "http://schema.org/name" => $breadcrumb,
                        ]
                    ];
                }
                $position++;
            }
        }

        $doc = (object)[
            "@type" => "http://schema.org/BreadcrumbList",
            "http://schema.org/itemListElement" => $breadcrumbList
        ];

        JsonLDHelper::add($doc);
    }
245000
def breadcrumbs
      return unless show_breadcrumbs?

      content_for(
        :breadcrumbs,
        content_tag(:ol, class: "breadcrumb") do
          concat(content_tag(:li, link_to("Home", root_path)))

          if can_view_resource_index?
            concat(
              content_tag(
                :li, controller_link
              )
            )
          end
        end
      )
    end
685197
public function setBreadcrumb($value, $key = null)
    {
        if (empty($key)) {
            $this->breadcrumbs[] = $value;
        } else {
            $this->breadcrumbs[$key] = $value;
        }
    }
1346105
protected function autoAddItems()
    {
        if ($this->config->get('crumbs.display_both_pages')) {
            $this->addHomePage();

            if ($this->request->is($this->config->get('crumbs.admin_pattern'))) {
                $this->addAdminPage();
            }
        } else {
            if ($this->config->get('crumbs.display_home_page') && !$this->request->is($this->config->get('crumbs.admin_pattern'))) {
                $this->addHomePage();
            }
            if ($this->config->get('crumbs.display_admin_page') && $this->request->is($this->config->get('crumbs.admin_pattern'))) {
                $this->addAdminPage();
            }
        }
    }
1177631
private function createBreadcrumbRoot()
    {
        if (null === $this->breadcrumb) {
            if (null === $home = $this->pageHelper->getHomePage()) {
                throw new \RuntimeException('Home page not found.');
            }
            $this->breadcrumb = $this->factory->createItem('root', [
                'childrenAttributes' => [
                    'class' => 'breadcrumb hidden-xs',
                ],
            ]);
            $this->tagManager->addTags($home->getEntityTag());
        }
    }
1162037
public function breadcrumbs_add_userdashboard() {
		$brouter = BRouter::getInstance();
		return $this->breadcrumbs_add('//' . $brouter->generateurl('users', BLang::$langcode, array('view' => 'dashboard')), BLang::_('USERS_DASHBOARD_HEADING'), true);
	}
853829
def index
      add_breadcrumb I18n.t('integral.breadcrumbs.blog'), nil
      @posts = Integral::Post.published.order('published_at DESC').paginate(page: params[:page])
    end
364432
public function add()
    {
        $this->loadModel('Menu.Menus');
        $menu = $this->Menus->newEntity();

        if ($this->request->data()) {
            $data = $this->request->data();
            $data['handler'] = 'Menu';
            $menu = $this->Menus->patchEntity($menu, $data, [
                'fieldList' => [
                    'title',
                    'handler',
                    'description',
                    'settings',
                ],
            ]);

            if ($this->Menus->save($menu, ['atomic' => true])) {
                $this->Flash->success(__d('menu', 'Menu has been created, now you can start adding links!'));
                $this->redirect(['plugin' => 'Menu', 'controller' => 'links', 'action' => 'add', $menu->id]);
            } else {
                $this->Flash->danger(__d('menu', 'Menu could not be created, please check your information'));
            }
        }

        $this->title(__d('menu', 'Create New Menu'));
        $this->set('menu', $menu);
        $this->Breadcrumb
            ->push('/admin/menu/manage')
            ->push(__d('menu', 'Creating new menu'), '#');
    }
119521
protected function setBreadcrumbEditSettings()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Modules'),
            'url' => $this->url('admin/module/list')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }