You are here

class LinkCheckerLinkRouteProvider in Link checker 8

Provides routes for linkchecker link.

Hierarchy

Expanded class hierarchy of LinkCheckerLinkRouteProvider

File

src/LinkCheckerLinkRouteProvider.php, line 13

Namespace

Drupal\linkchecker
View 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