public function StepsBlock::getCacheContexts in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/Plugin/Block/StepsBlock.php \Drupal\opigno_learning_path\Plugin\Block\StepsBlock::getCacheContexts()
Overrides ContextAwarePluginTrait::getCacheContexts
File
- src/
Plugin/ Block/ StepsBlock.php, line 69
Class
- StepsBlock
- Provides a 'article' block.
Namespace
Drupal\opigno_learning_path\Plugin\BlockCode
public function getCacheContexts() {
// Every new route this block will rebuild.
return Cache::mergeContexts(parent::getCacheContexts(), [
'route',
'opigno_current:group_id',
'opigno_current:content_id',
'opigno_current:activity_id',
]);
}