You are here

protected function LearningPathAchievementTrait::getCurrentGroupContentId in Opigno Learning path 3.x

Current Group Content Id.

3 calls to LearningPathAchievementTrait::getCurrentGroupContentId()
OpignoCurrentCacheContext::getContext in src/Cache/Context/OpignoCurrentCacheContext.php
Returns the string representation of the cache context.
StepsBlock::build in src/Plugin/Block/StepsBlock.php
Builds and returns the renderable array for this block plugin.
StepsBlock::isModuleCurrent in src/Plugin/Block/StepsBlock.php
Get the current active module.

File

src/Traits/LearningPathAchievementTrait.php, line 94

Class

LearningPathAchievementTrait
LearningPathAchievementTrait trait.

Namespace

Drupal\opigno_learning_path\Traits

Code

protected function getCurrentGroupContentId() {
  if ($cid = OpignoGroupContext::getCurrentGroupContentId()) {
    return $cid;
  }
}