class LinkCheckerLinkRouteProvider in Link checker 8
Provides routes for linkchecker link.
Hierarchy
- class \Drupal\linkchecker\LinkCheckerLinkRouteProvider implements EntityRouteProviderInterface
Expanded class hierarchy of LinkCheckerLinkRouteProvider
File
- src/
LinkCheckerLinkRouteProvider.php, line 13
Namespace
Drupal\linkcheckerView source
class LinkCheckerLinkRouteProvider implements EntityRouteProviderInterface {
/**
* {@inheritdoc}
*/
public function getRoutes(EntityTypeInterface $entity_type) {
$route_collection = new RouteCollection();
$route = (new Route('/admin/config/content/linkcheckerlink/{linkcheckerlink}/edit'))
->setDefault('_entity_form', 'linkcheckerlink.edit')
->setRequirement('_entity_access', 'linkcheckerlink.update')
->setRequirement('linkcheckerlink', '\\d+');
$route_collection
->add('entity.linkcheckerlink.edit_form', $route);
return $route_collection;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkCheckerLinkRouteProvider:: |
public | function |
Provides routes for entities. Overrides EntityRouteProviderInterface:: |