public function ActivitiesBrowserController::previewActivity in Opigno module 8
Same name and namespace in other branches
- 3.x src/Controller/ActivitiesBrowserController.php \Drupal\opigno_module\Controller\ActivitiesBrowserController::previewActivity()
Preview activity.
1 string reference to 'ActivitiesBrowserController::previewActivity'
File
- src/
Controller/ ActivitiesBrowserController.php, line 110
Class
- ActivitiesBrowserController
- Class ActivitiesBrowserController.
Namespace
Drupal\opigno_module\ControllerCode
public function previewActivity($opigno_activity) {
$build = [];
$build[] = \Drupal::entityTypeManager()
->getViewBuilder('opigno_activity')
->view($opigno_activity, 'activity');
return $build;
}