function lingotek_theme in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 lingotek.module \lingotek_theme()
- 7.7 lingotek.module \lingotek_theme()
- 4.0.x lingotek.module \lingotek_theme()
- 3.0.x lingotek.module \lingotek_theme()
- 3.2.x lingotek.module \lingotek_theme()
- 3.3.x lingotek.module \lingotek_theme()
- 3.4.x lingotek.module \lingotek_theme()
- 3.5.x lingotek.module \lingotek_theme()
- 3.6.x lingotek.module \lingotek_theme()
- 3.7.x lingotek.module \lingotek_theme()
- 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,
'status' => '',
'status_title' => '',
'language' => NULL,
'url' => NULL,
],
],
'lingotek_target_status' => [
'variables' => [
'entity' => NULL,
'language' => '',
'status' => [],
'url' => NULL,
'status_text' => '',
'new_window' => FALSE,
],
],
'lingotek_target_statuses' => [
'variables' => [
'entity' => NULL,
'source_langcode' => '',
'statuses' => [],
],
],
];
}