public function OpignoGroupManagerController::getGuidedNavigationResponse in Opigno group manager 8
Same name and namespace in other branches
- 3.x src/Controller/OpignoGroupManagerController.php \Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::getGuidedNavigationResponse()
Return Learning Path guided navigation field.
Parameters
\Drupal\group\Entity\Group $group: Group object.
Return value
\Symfony\Component\HttpFoundation\JsonResponse Response array.
1 string reference to 'OpignoGroupManagerController::getGuidedNavigationResponse'
File
- src/
Controller/ OpignoGroupManagerController.php, line 946
Class
- OpignoGroupManagerController
- Controller for all the actions of the Opigno group manager app.
Namespace
Drupal\opigno_group_manager\ControllerCode
public function getGuidedNavigationResponse(Group $group) {
$guidedNavigation = self::getGuidedNavigation($group);
// Return the JSON response.
return new JsonResponse($guidedNavigation, Response::HTTP_OK);
}