public static function TwigTweakExtension::drupalBreadcrumb in Twig Tweak 3.x
Same name and namespace in other branches
- 3.1.x src/TwigTweakExtension.php \Drupal\twig_tweak\TwigTweakExtension::drupalBreadcrumb()
Builds the breadcrumb.
File
- src/
TwigTweakExtension.php, line 389
Class
- TwigTweakExtension
- Twig extension with some useful functions and filters.
Namespace
Drupal\twig_tweakCode
public static function drupalBreadcrumb() : array {
return \Drupal::service('breadcrumb')
->build(\Drupal::routeMatch())
->toRenderable();
}