You are here

public function LearningPathStepsController::setGroupAndContext in Opigno Learning path 3.x

Sets a groupd and content.

2 calls to LearningPathStepsController::setGroupAndContext()
LearningPathStepsController::getNextStep in src/Controller/LearningPathStepsController.php
Redirect the user to the next step.
LearningPathStepsController::nextStep in src/Controller/LearningPathStepsController.php
Redirect the user to the next step.

File

src/Controller/LearningPathStepsController.php, line 605

Class

LearningPathStepsController
Class LearningPathStepsController.

Namespace

Drupal\opigno_learning_path\Controller

Code

public function setGroupAndContext($group_id, $content_id) {
  OpignoGroupContext::setGroupId($group_id);
  OpignoGroupContext::setCurrentContentId($content_id);
}