Computes the name of the breadcrumb under the given context.

 @return [String]
964268
def computed_name(context)
      @_name ||= case @name
      when String
        @name
      when Symbol
        I18n.translate(@name)
      when Proc
        context.instance_exec(&@name)
      when nil
        computed_path(context)
      else
        raise ArgumentError,
          "Expected one of String, Symbol, or Proc, " \
          "got #{@name.class}"
      end
    end
65218
public function getChainedNameAttribute(): string
    {
        $categories = $this->breadcrumbLinks;
        $names = [];

        foreach ($categories as $url => $categoryName) {
            $names[] = $categoryName;
        }

        return implode(' -> ', $names);
    }
80650
def normalize_name(context, constant = nil)
        case context
          when constant
            context.name
          when Symbol
            context.to_s
          else
            context
        end
      end
445289
public function &GetBreadcrumb()
    {
        $oBreadCrumb = &$this->GetFromInternalCache('oCategoryBreadcrumb');
        if (is_null($oBreadCrumb)) {
            $oBreadCrumb = &TdbShopCategoryList::GetCategoryPath($this->id, null, $this->GetLanguage());
            $this->SetInternalCache('oCategoryBreadcrumb', $oBreadCrumb);
        } else {
            $oBreadCrumb->GoToStart();
        }

        return $oBreadCrumb;
    }
411546
protected function breadcrumbsIndex($route, $parsedRoute)
    {
        $urlContext = [];
        if (isset($parsedRoute['params'])) {
            if (isset($parsedRoute['params']['context'])) {
                $urlContext['context'] = $parsedRoute['params']['context'];
            }
        }
        return [
            'id' => 'deliverySelection',
            'url' => _url('index', 'DeliverySelection', 'taoProctoring', $urlContext),
            'label' => __('Deliveries'),
        ];
    }
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();
    }
929853
def your_tips_breadcrumbs(context, active_breadcrumb_title=None):
    
    context = copy(context)
    if get_your_tip(context):

        context.update({
            'your_tip_page_slug': get_your_tip(context).slug,
            'active_breadcrumb_title': active_breadcrumb_title
        })
    return context
348407
@Override
    public QName getName()
    {
        if (mCurrToken != START_ELEMENT && mCurrToken != END_ELEMENT) {
            throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_ELEM);
        }
        return mElementStack.getCurrentElementName();
    }
988019
def parent_breadcrumb(options = {}, &block)
      if block_given?
        gretel_renderer.yield_parent_breadcrumb(options, &block)
      else
        gretel_renderer.parent_breadcrumb(options)
      end
    end
1021499
public function getBreadCrumb()
    {
        $aPaths = [];
        $oCatTree = $this->getVendorTree();

        if ($oCatTree) {
            foreach ($oCatTree->getPath() as $oCat) {
                $aCatPath = [];

                $aCatPath['link'] = $oCat->getLink();
                $aCatPath['title'] = $oCat->oxcategories__oxtitle->value;

                $aPaths[] = $aCatPath;
            }
        }

        return $aPaths;
    }
774910
public function Breadcrumbs()
    {
        $ownerClassName = $this->OwnerClassName;

        if ($owner = $ownerClassName::get()->filter('ElementalAreaID', $this->ID)->first()) {
            return DBField::create_field('HTMLText', sprintf(
                '<a href="%s">%s</a>',
                $owner->CMSEditLink(),
                $owner->Title
            ));
        }

        return null;
    }
1328273
public static function renderBreadcrumbs() : string {
		if (!empty(Application::$controller->breadcrumbs)) {
			return \HTML::breadcrumbs(Application::$controller->breadcrumbs);
		} else {
			return '';
		}
	}
54304
protected String getBreadCrumbHtml(String[][] breadCrumbEntries) {

        StringBuffer buffer = new StringBuffer();
        buffer.append("<div>");
        if ((breadCrumbEntries != null)) {
            for (String[] entry : breadCrumbEntries) {
                appendBreadCrumbEntry(buffer, entry[0], entry[1]);
            }
        }
        buffer.append("</div>");
        return buffer.toString();
    }
639667
private void obtainBreadCrumbBackgroundColor() {
        int color;

        try {
            color = ThemeUtil.getColor(this, R.attr.breadCrumbBackgroundColor);
        } catch (NotFoundException e) {
            color = ContextCompat.getColor(this, R.color.bread_crumb_background_light);
        }

        setBreadCrumbBackgroundColor(color);
    }
494853
public function getBreadcrumbLinksAttribute(): array
    {
        $breadcrumbs = [];

        foreach ($this->ancestors as $ancestor) {
            $breadcrumbs[url($ancestor->full_slug)] = $ancestor->name;
        }

        $breadcrumbs[url($this->full_slug)] = $this->name;

        return $breadcrumbs;
    }
1347744
function getCrumbTrail( crumbs )
{
	var xhtml = DISPLAY_PREPREND;

	for( var i = 0; i < crumbs.length; i++ )
	{
		xhtml += '<a href="' + crumbs[i][1] + '" >';
		xhtml += unescape( crumbs[i][0] ) + '</a>';
		if( i != (crumbs.length-1) )
		{
			xhtml += DISPLAY_SEPARATOR;
		}
	}

	xhtml += DISPLAY_POSTPREND;

	return xhtml;
}
958566
public function getBreadCrumb()
    {
        $aPaths = [];

        $oCatTree = $this->getManufacturerTree();

        if ($oCatTree) {
            foreach ($oCatTree->getPath() as $oCat) {
                $aCatPath = [];
                $aCatPath['link'] = $oCat->getLink();
                $aCatPath['title'] = $oCat->oxmanufacturers__oxtitle->value;

                $aPaths[] = $aCatPath;
            }
        }

        return $aPaths;
    }