You are here

function lingotek_theme in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8.2 lingotek.module \lingotek_theme()
  2. 7.7 lingotek.module \lingotek_theme()
  3. 4.0.x lingotek.module \lingotek_theme()
  4. 3.0.x lingotek.module \lingotek_theme()
  5. 3.1.x lingotek.module \lingotek_theme()
  6. 3.2.x lingotek.module \lingotek_theme()
  7. 3.3.x lingotek.module \lingotek_theme()
  8. 3.4.x lingotek.module \lingotek_theme()
  9. 3.5.x lingotek.module \lingotek_theme()
  10. 3.7.x lingotek.module \lingotek_theme()
  11. 3.8.x lingotek.module \lingotek_theme()

Implements hook_theme().

File

./lingotek.module, line 717
Implements Drupal-related hooks for the Lingotek Translation module.

Code

function lingotek_theme() {
  return [
    'lingotek_source_status' => [
      'variables' => [
        'entity' => NULL,
        'ui_component' => NULL,
        'status' => '',
        'status_title' => '',
        'language' => NULL,
        'url' => NULL,
      ],
    ],
    'lingotek_target_status' => [
      'variables' => [
        'entity' => NULL,
        'language' => '',
        'status' => [],
        'url' => NULL,
        'status_text' => '',
        'new_window' => FALSE,
        'actions' => [],
      ],
    ],
    'lingotek_target_statuses' => [
      'variables' => [
        'entity' => NULL,
        'source_langcode' => '',
        'statuses' => [],
      ],
    ],
  ];
}