Drupal 8  8.0.2
HistoryController Class Reference
Inheritance diagram for HistoryController:

Public Member Functions

 getNodeReadTimestamps (Request $request)
 
 readNode (Request $request, NodeInterface $node)
 

Detailed Description

Returns responses for History module routes.

Member Function Documentation

getNodeReadTimestamps ( Request  $request)

Returns a set of nodes' last read timestamps.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe request of the page.
Returns
Symfony The JSON response.

References Drupal\currentUser().

Here is the call graph for this function:

readNode ( Request  $request,
NodeInterface  $node 
)

Marks a node as read by the current user right now.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe request of the page.
\Drupal\node\NodeInterface$nodeThe node whose "last read" timestamp should be updated.

References Drupal\currentUser(), and EntityInterface\id().

Here is the call graph for this function:


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