public function Routes::entryPoint in Entity Share 8
Same name and namespace in other branches
- 8.3 modules/entity_share_server/src/Routing/Routes.php \Drupal\entity_share_server\Routing\Routes::entryPoint()
- 8.2 modules/entity_share_server/src/Routing/Routes.php \Drupal\entity_share_server\Routing\Routes::entryPoint()
Provides the entry point route.
1 string reference to 'Routes::entryPoint'
- entity_share_server.routing.yml in modules/
entity_share_server/ entity_share_server.routing.yml - modules/entity_share_server/entity_share_server.routing.yml
File
- modules/
entity_share_server/ src/ Routing/ Routes.php, line 56
Class
- Routes
- Defines dynamic routes.
Namespace
Drupal\entity_share_server\RoutingCode
public function entryPoint() {
$collection = new RouteCollection();
$route_collection = (new Route('/entity_share', [
RouteObjectInterface::CONTROLLER_NAME => '\\Drupal\\entity_share_server\\Controller\\EntryPoint::index',
]))
->setRequirement('_permission', 'entity_share_server_access_channels')
->setMethods([
'GET',
]);
$route_collection
->addOptions([
'_auth' => $this
->authProviderList(),
]);
$collection
->add('entity_share_server.resource_list', $route_collection);
return $collection;
}