3 namespace Drupal\Core\Breadcrumb;
5 use Drupal\Core\Routing\RouteMatchInterface;
8 * Defines an interface for classes that build breadcrumbs.
10 interface BreadcrumbBuilderInterface {
13 * Whether this breadcrumb builder should be used to build the breadcrumb.
15 * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
16 * The current route match.
19 * TRUE if this builder should be used or FALSE to let other builders
22 public function applies(RouteMatchInterface $route_match);
25 * Builds the breadcrumb.
27 * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
28 * The current route match.
30 * @return \Drupal\Core\Breadcrumb\Breadcrumb
33 public function build(RouteMatchInterface $route_match);