Add empty links from a BreadcrumbBuilder For several specific parts of a website, I'm using a custom BreadcrumbBuilder, like this:

...
class SpecificBreadcrumbBuilder implements BreadcrumbBuilderInterface
{    
    /**
     * @inheritdoc
     */
    public function applies(RouteMatchInterface $route_match)
    {
        $node = $route_match-&gt;getParameter('node');
        return $node-&gt;getType() == 'specificpage';
    }

    /**
     * @inheritdoc
     */
    public function build(RouteMatchInterface $route_match)
    {
        $node = $route_match-&gt;getParameter('node');

        $breadcrumb = new Breadcrumb();
        $breadcrumb-&gt;addCacheContexts(["url"]);
        $breadcrumb-&gt;addCacheTags(["node:{$node-&gt;nid-&gt;value}"]);

        $breadcrumb-&gt;addLink(Link::createFromRoute('Home', '&lt;front&gt;'));

        if (!empty($node-&gt;field_specific-&gt;value == '...')) {
          $breadcrumb-&gt;addLink(Link::createFromRoute('Specific pages', '&lt;front&gt;'));
          $breadcrumb-&gt;addLink(Link::createFromRoute($node-&gt;getTitle(), '&lt;front&gt;'));
        }

        return $breadcrumb;
    }
}


I would like to not use URLs for the two last links. Something like &lt;nolink&gt; (from the "Special Menu Items" module), but made from code.
I cannot find a way to add a text-only element to my Breadcrumb (and from what I can see, this class only have an addLink() function).

Any thoughts?
Drupal 8 has now a special &lt;nolink&gt; route to define empty links:

$breadcrumb-&gt;addlink(Link::createFromRoute('Empty link', '&lt;nolink&gt;'));


See issue (patch commited to 8.2.x): https://www.drupal.org/node/2693725