function opigno_module_is_activity_route in Opigno module 3.x
Same name and namespace in other branches
- 8 opigno_module.module \opigno_module_is_activity_route()
Helper function.
Is activity route.
4 calls to opigno_module_is_activity_route()
- LearningPathProgressBlock::build in src/
Plugin/ Block/ LearningPathProgressBlock.php - opigno_module_page_attachments in ./
opigno_module.module - Implements hook_page_attachments().
- opigno_module_preprocess_page in ./
opigno_module.module - Implements hook_preprocess_page().
- opigno_module_theme_suggestions_alter in ./
opigno_module.module - Implements hook_theme_suggestions_alter().
File
- ./
opigno_module.module, line 824 - Contains opigno_module.module.
Code
function opigno_module_is_activity_route() {
return in_array(\Drupal::routeMatch()
->getRouteName(), [
'opigno_module.group.answer_form',
]);
}