public function StepsBlock::getGroupByRouteOrContext in Opigno Learning path 3.x
1 call to StepsBlock::getGroupByRouteOrContext()
- StepsBlock::build in src/
Plugin/ Block/ StepsBlock.php - Builds and returns the renderable array for this block plugin.
File
- src/
Plugin/ Block/ StepsBlock.php, line 82
Class
- StepsBlock
- Provides a 'article' block.
Namespace
Drupal\opigno_learning_path\Plugin\BlockCode
public function getGroupByRouteOrContext() {
// By default a getCurrentGroupId gets a group by orute parameter.
return Group::load($this
->getCurrentGroupId());
}