protected function LearningPathAchievementTrait::getCurrentGroupId in Opigno Learning path 3.x
Current Group Id.
4 calls to LearningPathAchievementTrait::getCurrentGroupId()
- OpignoCurrentCacheContext::getContext in src/
Cache/ Context/ OpignoCurrentCacheContext.php - Returns the string representation of the cache context.
- StepsBlock::getGroupByRouteOrContext in src/
Plugin/ Block/ StepsBlock.php - StepsBlock::getLink in src/
Plugin/ Block/ StepsBlock.php - Take a module link.
- StepsBlock::getLinkToStart in src/
Plugin/ Block/ StepsBlock.php
File
- src/
Traits/ LearningPathAchievementTrait.php, line 85
Class
- LearningPathAchievementTrait
- LearningPathAchievementTrait trait.
Namespace
Drupal\opigno_learning_path\TraitsCode
protected function getCurrentGroupId() {
if ($group_id = OpignoGroupContext::getCurrentGroupId()) {
return $group_id;
}
}