protected function StepsBlock::isModuleCurrent in Opigno Learning path 3.x
Get the current active module.
2 calls to StepsBlock::isModuleCurrent()
- StepsBlock::processActivityList in src/
Plugin/ Block/ StepsBlock.php - Converts a step array to a renderable array.
- StepsBlock::processModuleList in src/
Plugin/ Block/ StepsBlock.php - Process module list.
File
- src/
Plugin/ Block/ StepsBlock.php, line 224
Class
- StepsBlock
- Provides a 'article' block.
Namespace
Drupal\opigno_learning_path\Plugin\BlockCode
protected function isModuleCurrent(array $step) : bool {
return $this
->getCurrentGroupContentId() == $step['cid'];
}