{% import '@lib/di.twig' as di %} getRouteName() === 'example'; } /** * {@inheritdoc} */ public function build(RouteMatchInterface $route_match): Breadcrumb { $breadcrumb = new Breadcrumb(); $links[] = Link::createFromRoute($this->t('Home'), ''); $links[] = Link::createFromRoute($this->t('Example'), ''); return $breadcrumb->setLinks($links); } }