You are here

public function ScheduleController::revisionShow in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Controller/ScheduleController.php \Drupal\business_rules\Controller\ScheduleController::revisionShow()

Displays a Schedule revision.

Parameters

int $schedule_revision: The Schedule revision ID.

Return value

array An array suitable for drupal_render().

File

src/Controller/ScheduleController.php, line 193

Class

ScheduleController
Class ScheduleController.

Namespace

Drupal\business_rules\Controller

Code

public function revisionShow($schedule_revision) {
  $schedule = $this
    ->entityManager()
    ->getStorage('business_rules_schedule')
    ->loadRevision($schedule_revision);
  $view_builder = $this
    ->entityManager()
    ->getViewBuilder('business_rules_schedule');

  // Return $view_builder->view($schedule);
  return $this
    ->view($schedule_revision);
}