You are here

public function ThunderNodeEditBreadcrumbBuilder::applies in Thunder 6.2.x

Same name and namespace in other branches
  1. 6.1.x src/Breadcrumb/ThunderNodeEditBreadcrumbBuilder.php \Drupal\thunder\Breadcrumb\ThunderNodeEditBreadcrumbBuilder::applies()

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

src/Breadcrumb/ThunderNodeEditBreadcrumbBuilder.php, line 20

Class

ThunderNodeEditBreadcrumbBuilder
Class to define the breadcrumb builder.

Namespace

Drupal\thunder\Breadcrumb

Code

public function applies(RouteMatchInterface $route_match) {
  return in_array($route_match
    ->getRouteName(), [
    'entity.node.edit_form',
    'node.add',
    'node.add_page',
  ]);
}