{% import '@lib/di.twig' as di %} services: {{ machine_name }}.breadcrumb: class: Drupal\{{ machine_name }}\{{ class }} {% if services %} arguments: [{{ di.arguments(services) }}] {% endif %} tags: # In order to override breadcrumbs built with PathBasedBreadcrumbBuilder # set the priority higher than zero. - { name: breadcrumb_builder, priority: 1000 }