You are here

function opigno_module_is_activity_route in Opigno module 8

Same name and namespace in other branches
  1. 3.x 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 825
Contains opigno_module.module.

Code

function opigno_module_is_activity_route() {
  return in_array(\Drupal::routeMatch()
    ->getRouteName(), [
    'opigno_module.group.answer_form',
  ]);
}