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; } }