You are here

public function OpignoGroupManagerController::getGuidedNavigationResponse in Opigno group manager 8

Same name and namespace in other branches
  1. 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'
opigno_group_manager.routing.yml in ./opigno_group_manager.routing.yml
opigno_group_manager.routing.yml

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\Controller

Code

public function getGuidedNavigationResponse(Group $group) {
  $guidedNavigation = self::getGuidedNavigation($group);

  // Return the JSON response.
  return new JsonResponse($guidedNavigation, Response::HTTP_OK);
}