You are here

public function FlaggingCollectionController::revisionShow in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/Controller/FlaggingCollectionController.php \Drupal\flag_lists\Controller\FlaggingCollectionController::revisionShow()

Displays a Flagging collection revision.

Parameters

int $flagging_collection_revision: The Flagging collection revision ID.

Return value

array An array suitable for drupal_render().

File

src/Controller/FlaggingCollectionController.php, line 28

Class

FlaggingCollectionController
Class FlaggingCollectionController.

Namespace

Drupal\flag_lists\Controller

Code

public function revisionShow($flagging_collection_revision) {
  $flagging_collection = $this
    ->entityTypeManager()
    ->getStorage('flagging_collection')
    ->loadRevision($flagging_collection_revision);
  $view_builder = $this
    ->entityTypeManager()
    ->getViewBuilder('flagging_collection');
  return $view_builder
    ->view($flagging_collection);
}