Drupal 8  8.0.2
ResourceRoutes Class Reference
Inheritance diagram for ResourceRoutes:

Public Member Functions

 __construct (ResourcePluginManager $manager, ConfigFactoryInterface $config, LoggerInterface $logger)
 
- Public Member Functions inherited from RouteSubscriberBase
 onAlterRoutes (RouteBuildEvent $event)
 

Protected Member Functions

 alterRoutes (RouteCollection $collection)
 
- Protected Member Functions inherited from RouteSubscriberBase
 alterRoutes (RouteCollection $collection)
 

Protected Attributes

 $manager
 
 $config
 
 $logger
 

Additional Inherited Members

- Static Public Member Functions inherited from RouteSubscriberBase
static getSubscribedEvents ()
 

Detailed Description

Subscriber for REST-style routes.

Constructor & Destructor Documentation

__construct ( ResourcePluginManager  $manager,
ConfigFactoryInterface  $config,
LoggerInterface  $logger 
)

Constructs a RouteSubscriber object.

Parameters
\Drupal\rest\Plugin\Type\ResourcePluginManager$managerThe resource plugin manager.
\Drupal\Core\Config\ConfigFactoryInterface$configThe configuration factory holding resource settings.
\Psr\Log\LoggerInterface$loggerA logger instance.

References Drupal\config(), and Drupal\logger().

Here is the call graph for this function:

Member Function Documentation

alterRoutes ( RouteCollection  $collection)
protected

Alters existing routes for a specific collection.

Parameters
\Symfony\Component\Routing\RouteCollection$collectionThe route collection for adding routes.
Returns
array

References Drupal\config(), and Drupal\logger().

Here is the call graph for this function:


The documentation for this class was generated from the following file: