Drupal 8  8.0.2
DBLogResource Class Reference
Inheritance diagram for DBLogResource:

Public Member Functions

 get ($id=NULL)
 
- Public Member Functions inherited from ResourceBase
 __construct (array $configuration, $plugin_id, $plugin_definition, array $serializer_formats, LoggerInterface $logger)
 
 permissions ()
 
 routes ()
 
 availableMethods ()
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ResourceBase
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 
- Protected Member Functions inherited from ResourceBase
 requestMethods ()
 
 getBaseRoute ($canonical_path, $method)
 
- Protected Attributes inherited from ResourceBase
 $serializerFormats = array()
 
 $logger
 

Detailed Description

Provides a resource for database watchdog log entries.

( id = "dblog", label = ("Watchdog database log"), uri_paths = { "canonical" = "/dblog/{id}" } )

Member Function Documentation

get (   $id = NULL)

Responds to GET requests.

Returns a watchdog log entry for the specified ID.

Parameters
int$idThe ID of the watchdog log entry.
Returns
The response containing the log entry.
Exceptions
\Symfony\Component\HttpKernel\Exception\HttpException

References db_query(), and t().

Here is the call graph for this function:


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