You are here

public function DataPolicy::revisionOverviewPage in Data Policy 8

Displays a Data policy revision.

Parameters

int $data_policy_revision: The Data policy revision ID.

Return value

array An array suitable for drupal_render().

File

src/Controller/DataPolicy.php, line 168

Class

DataPolicy
Class DataPolicy.

Namespace

Drupal\data_policy\Controller

Code

public function revisionOverviewPage($data_policy_revision) {
  $data_policy = $this
    ->entityTypeManager()
    ->getStorage('data_policy')
    ->loadRevision($data_policy_revision);
  return $this
    ->entityTypeManager()
    ->getViewBuilder('data_policy')
    ->view($data_policy);
}