public function JobItemBreadcrumbBuilder::applies in Translation Management Tool 8
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/
Menu/ JobItemBreadcrumbBuilder.php, line 21
Class
- JobItemBreadcrumbBuilder
- A custom Job item breadcrumb builder.
Namespace
Drupal\tmgmt\MenuCode
public function applies(RouteMatchInterface $route_match) {
if ($route_match
->getRouteName() == 'entity.tmgmt_job_item.canonical' && $route_match
->getParameter('tmgmt_job_item') instanceof JobItemInterface) {
return TRUE;
}
}