public function EasyEmailController::revisionShow in Easy Email 8
Same name and namespace in other branches
- 2.0.x src/Controller/EasyEmailController.php \Drupal\easy_email\Controller\EasyEmailController::revisionShow()
Displays a Email revision.
Parameters
int $easy_email_revision: The Email revision ID.
Return value
array An array suitable for drupal_render().
File
- src/
Controller/ EasyEmailController.php, line 149
Class
- EasyEmailController
- Class EasyEmailController.
Namespace
Drupal\easy_email\ControllerCode
public function revisionShow($easy_email_revision) {
$easy_email = $this
->entityTypeManager()
->getStorage('easy_email')
->loadRevision($easy_email_revision);
$view_builder = $this
->entityTypeManager()
->getViewBuilder('easy_email');
return $view_builder
->view($easy_email);
}