You are here

public function TwigExtension::drupalBreadcrumb in Twig Tweak 8.2

Builds the breadcrumb.

File

src/TwigExtension.php, line 971

Class

TwigExtension
Twig extension with some useful functions and filters.

Namespace

Drupal\twig_tweak

Code

public function drupalBreadcrumb() {
  return \Drupal::service('breadcrumb')
    ->build(\Drupal::routeMatch())
    ->toRenderable();
}