You are here

public function NodeRevisionController::revisionOverview in Diff 8

Returns a form for revision overview page.

@todo This might be changed to a view when the issue at this link is resolved: https://drupal.org/node/1863906

Parameters

\Drupal\node\NodeInterface $node: The node whose revisions are inspected.

Return value

array Render array containing the revisions table for $node.

File

src/Controller/NodeRevisionController.php, line 24

Class

NodeRevisionController
Returns responses for Node Revision routes.

Namespace

Drupal\diff\Controller

Code

public function revisionOverview(NodeInterface $node) {
  return $this
    ->formBuilder()
    ->getForm('Drupal\\diff\\Form\\RevisionOverviewForm', $node);
}