You are here

public function DashboardController::getDefaultPositioning in Opigno dashboard 8

Same name and namespace in other branches
  1. 3.x src/Controller/DashboardController.php \Drupal\opigno_dashboard\Controller\DashboardController::getDefaultPositioning()

Returns default positioning.

1 string reference to 'DashboardController::getDefaultPositioning'
opigno_dashboard.routing.yml in ./opigno_dashboard.routing.yml
opigno_dashboard.routing.yml

File

src/Controller/DashboardController.php, line 212

Class

DashboardController
Controller for all the actions of the Learning Path manager app.

Namespace

Drupal\opigno_dashboard\Controller

Code

public function getDefaultPositioning() {
  $positioning = $this
    ->getPositioning(NULL, TRUE);
  return new JsonResponse([
    'positions' => $positioning['positions'],
    'columns' => $positioning['columns'],
  ], Response::HTTP_OK);
}