public function DashboardController::getDefaultPositioning in Opigno dashboard 3.x
Same name and namespace in other branches
- 8 src/Controller/DashboardController.php \Drupal\opigno_dashboard\Controller\DashboardController::getDefaultPositioning()
Returns the default positioning.
Return value
\Symfony\Component\HttpFoundation\JsonResponse The default positioning.
1 string reference to 'DashboardController::getDefaultPositioning'
File
- src/
Controller/ DashboardController.php, line 171
Class
- DashboardController
- Controller for all the actions of the Learning Path manager app.
Namespace
Drupal\opigno_dashboard\ControllerCode
public function getDefaultPositioning() : JsonResponse {
$positioning = $this->blockService
->getPositioning(NULL, TRUE);
return new JsonResponse([
'positions' => $positioning['positions'],
'columns' => $positioning['columns'],
], Response::HTTP_OK);
}