You are here

function opigno_statistics_theme in Opigno statistics 3.x

Same name and namespace in other branches
  1. 8 opigno_statistics.module \opigno_statistics_theme()

Implements hook_ENTITY_TYPE_access().

File

./opigno_statistics.module, line 21
Contains opigno_statistics.module.

Code

function opigno_statistics_theme() {
  return [
    'opigno_statistics_circle_indicator' => [
      'variables' => [
        'width' => NULL,
        'height' => NULL,
        'cx' => NULL,
        'cy' => NULL,
        'radius' => NULL,
        'x' => NULL,
        'y' => NULL,
        'val_rad' => NULL,
      ],
    ],
    'opigno_statistics_user_metric' => [
      'variables' => [
        'label' => NULL,
        'value' => NULL,
        'help_text' => NULL,
      ],
    ],
    'opigno_statistics_user_metrics' => [
      'render element' => 'elements',
    ],
    'opigno_statistics_circle_indicator_value' => [
      'variables' => [
        'label' => NULL,
        'value' => NULL,
        'help_text' => NULL,
      ],
    ],
    'opigno_user_stats_block' => [
      'variables' => [
        'stats' => [],
      ],
    ],
    'opigno_statistics_user_achievement' => [
      'variables' => [
        'count' => NULL,
        'text' => NULL,
        'subtitle' => NULL,
        'img' => NULL,
        'url' => NULL,
      ],
    ],
    'opigno_user_statistics_page' => [
      'variables' => [
        'user_info' => NULL,
        'stats' => NULL,
        'trainings' => NULL,
      ],
    ],
    'opigno_user_training_charts' => [
      'render element' => 'elements',
    ],
    'opigno_user_achievements_page' => [
      'variables' => [
        'tabs' => [],
        'active' => NULL,
        'content' => [],
      ],
    ],
  ];
}