interface ChainBreadcrumbBuilderInterface implements BreadcrumbBuilderInterface (View source)

Defines an interface a chained service that builds the breadcrumb.

Methods

bool
applies(RouteMatchInterface $route_match)

Whether this breadcrumb builder should be used to build the breadcrumb.

build(RouteMatchInterface $route_match)

Builds the breadcrumb.

addBuilder(BreadcrumbBuilderInterface $builder, int $priority)

Adds another breadcrumb builder.

Details

bool applies(RouteMatchInterface $route_match)

Whether this breadcrumb builder should be used to build the breadcrumb.

Parameters

RouteMatchInterface $route_match

The current route match.

Return Value

bool

TRUE if this builder should be used or FALSE to let other builders decide.

Breadcrumb build(RouteMatchInterface $route_match)

Builds the breadcrumb.

Parameters

RouteMatchInterface $route_match

The current route match.

Return Value

Breadcrumb

A breadcrumb.

addBuilder(BreadcrumbBuilderInterface $builder, int $priority)

Adds another breadcrumb builder.

Parameters

BreadcrumbBuilderInterface $builder

The breadcrumb builder to add.

int $priority

Priority of the breadcrumb builder.