Record a single {@link Breadcrumb} into this context.

@param breadcrumb Breadcrumb object to record
500117
public synchronized void recordBreadcrumb(Breadcrumb breadcrumb) {
        if (breadcrumbs == null) {
            breadcrumbs = new CircularFifoQueue<>(breadcrumbLimit);
        }

        breadcrumbs.add(breadcrumb);
    }
963867
def breadcrumb_nav(context):
    
    breadcrumb = []
    dashboard = context.request.horizon['dashboard']
    try:
        panel_groups = dashboard.get_panel_groups()
    except KeyError:
        panel_groups = None
    panel_group = None
    panel = context.request.horizon['panel']

    # Add panel group, if there is one
    if panel_groups:
        for group in panel_groups.values():
            if panel.slug in group.panels and group.slug != 'default':
                panel_group = group
                break

    # Remove panel reference if that is the current page
    if panel.get_absolute_url() == context.request.path:
        panel = None

    # Get custom breadcrumb, if there is one.
    custom_breadcrumb = context.get('custom_breadcrumb')

    # Build list of tuples (name, optional url)
    breadcrumb.append((dashboard.name, None))
    if panel_group:
        breadcrumb.append((panel_group.name, None))
    if panel:
        breadcrumb.append((panel.name, panel.get_absolute_url()))
    if custom_breadcrumb:
        breadcrumb.extend(custom_breadcrumb)
    breadcrumb.append((context.get('page_title'), None))

    return {'breadcrumb': breadcrumb}
598858
def add_breadcrumb(name, url = 'javascript:;', atts = {})
      hash = { name: name, url: url, atts: atts }
      @breadcrumbs << hash
    end
963262
private void appendBreadCrumbEntry(StringBuffer buffer, String target, String label) {

        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(target)) {
            buffer.append("<a href=\"#!").append(target).append(
                "\" title=\"" + CmsDomUtil.escapeXml(label) + "\"><span>").append(label).append("</span></a>");
        } else {
            buffer.append(
                "<span class=\"o-tools-breadcrumb-active\" title=\""
                    + CmsDomUtil.escapeXml(label)
                    + "\"><span>").append(label).append("</span></span>");
        }
    }
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
1161282
private void record(int b) throws IOException {
        if (this.shouldDigest) {
            this.digest.update((byte)b);
        }
        if (this.position >= this.buffer.length) {
            this.ensureDiskStream().write(b);
        } else {
            this.buffer[(int) this.position] = (byte) b;
        }
        this.position++;
    }
512116
def pages_breadcrumb(context, page, url='/'):
    
    lang = context.get('lang', pages_settings.PAGE_DEFAULT_LANGUAGE)
    page = get_page_from_string_or_id(page, lang)
    pages_navigation = None
    if page:
        pages_navigation = page.get_ancestors()
    context.update({'pages_navigation': pages_navigation, 'page': page})
    return context
526268
public void addBookmarkFilter(Object bookmark)
    {
        if (m_recordMessageFilter != null)
        {
            if (bookmark == null)   // Never
                bookmark = NO_BOOKMARK;
            Hashtable<String,Object> properties = new Hashtable<String,Object>();
            properties.put(GridRecordMessageFilter.ADD_BOOKMARK, bookmark);
            m_recordMessageFilter.updateFilterMap(properties);
        }
    }
293576
def record(message=None, timestamp=None, level=None, category=None,
           data=None, type=None, processor=None):
    
    if timestamp is None:
        timestamp = time()
    for ctx in raven.context.get_active_contexts():
        ctx.breadcrumbs.record(timestamp, level, message, category,
                               data, type, processor)
689608
public function createBreadcrumb()
    {
        if (null === $this->breadcrumb) {
            $this->createBreadcrumbRoot();

            // Retrieve the current page.
            $currentPage = $this->pageHelper->getCurrent();

            // If not found look for a parent
            if (null === $currentPage && null !== $request = $this->pageHelper->getRequest()) {
                // TODO create a route finder ? (same in AdminBundle ResourceHelper)
                $routeName = $request->attributes->get('_route');
                $i18nRouterClass = 'JMS\I18nRoutingBundle\Router\I18nRouterInterface';
                if (interface_exists($i18nRouterClass) && $this->router instanceof $i18nRouterClass) {
                    $route = $this->router->getOriginalRouteCollection()->get($routeName);
                } else {
                    $route = $this->router->getRouteCollection()->get($routeName);
                }
                if (null !== $route) {
                    $cmsOptions = $route->getOption('_cms');
                    if (null !== $cmsOptions
                        && array_key_exists('parent', $cmsOptions)
                        && 0 < strlen($cmsOptions['parent'])
                    ) {
                        $currentPage = $this->pageHelper->findByRoute($cmsOptions['parent']);
                    }
                }
            }

            // If found, build the breadcrumb
            if (null !== $currentPage) {
                $repository = $this->pageHelper->getPageRepository();
                $pages = $repository->findParentsForBreadcrumb($currentPage);

                // Fill the menu
                foreach ($pages as $page) {
                    if ($page['dynamicPath']) {
                        $params = ['uri' => null];
                    } else {
                        $params = ['route' => $page['route']];
                    }
                    $this->breadcrumb
                        ->addChild('page-' . $page['id'], $params)
                        ->setLabel($page['breadcrumb']);
                    $this->tagManager->addTags(sprintf('%s[id:%s]', $repository->getCachePrefix(), $page['id']));
                }
            }
        }

        return $this->breadcrumb;
    }
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;
        }
    }
1237025
def init_breadcrumbs(self):
        
        g.breadcrumb.append(BreadcrumbItem(icon="home", url="/" + request.script_root))
136009
public function breadcrumb()
    {
        $environment = $this->getEnvironment();

        $event = new GetBreadcrumbEvent($environment);
        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        $elements = $event->getElements();

        if (!\is_array($elements) || !\count($elements)) {
            return null;
        }

        $GLOBALS['TL_CSS']['cca.dc-general.generalBreadcrumb'] = 'bundles/ccadcgeneral/css/generalBreadcrumb.css';

        return $this->getTemplate('dcbe_general_breadcrumb')
            ->set('elements', $elements)
            ->parse();
    }
480207
def breadcrumb_safe(context, label, viewname, *args, **kwargs):
    
    append_breadcrumb(context, _(label), viewname, args, kwargs)
    return ''
697630
@Override
    public void record( final Context context,
                        final InputStream inputStream,
                        final long length,
                        final String encoding,
                        final Node outputNode ) throws Exception {
            JavaMetadata javaMetadata = JavaMetadata.instance(inputStream, length, encoding);
            record(context, outputNode, javaMetadata);
    }
10698
public function breadcrumb(BreadcrumbItem $mainItem, Breadcrumb $breadcrumb)
    {
        $this->dataCollection->add('mainItem', $mainItem);
        $this->dataCollection->add('breadcrumb', $breadcrumb);

        return $this->render('Breadcrumb');
    }
214232
private function registerBreadcrumbsPackage()
    {
        $this->registerProvider(BreadcrumbsServiceProvider::class);

        $this->alias('Breadcrumbs', \Arcanedev\Breadcrumbs\Facades\Breadcrumbs::class);
    }