public function CartBreadcrumbBuilder::applies in Ubercart 8.4
Whether this breadcrumb builder should be used to build the breadcrumb.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
Return value
bool TRUE if this builder should be used or FALSE to let other builders decide.
Overrides BreadcrumbBuilderInterface::applies
File
- uc_cart/
src/ CartBreadcrumbBuilder.php, line 21
Class
- CartBreadcrumbBuilder
- Provides a custom breadcrumb builder for the cart page.
Namespace
Drupal\uc_cartCode
public function applies(RouteMatchInterface $route_match) {
return $route_match
->getRouteName() == 'uc_cart.cart' && \Drupal::config('uc_cart.settings')
->get('breadcrumb_text');
}