You are here

public function DashboardController::getPositioning in Opigno dashboard 3.x

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

Returns positioning.

Parameters

int|string|null $uid: The user ID to get the positioning for.

bool $default: Should the default positioning be used or not.

bool $user_default: Should the user default positioning be used or not.

Return value

array|\Symfony\Component\HttpFoundation\JsonResponse Blocks positioning.

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

File

src/Controller/DashboardController.php, line 121

Class

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

Namespace

Drupal\opigno_dashboard\Controller

Code

public function getPositioning($uid = NULL, bool $default = FALSE, bool $user_default = FALSE) {
  return $this->blockService
    ->getPositioning($uid, $default, $user_default);
}