You are here

function template_preprocess_lingotek_target_statuses in Lingotek Translation 3.6.x

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

Prepares variables for lingotek target status formatter templates.

Default template: lingotek_target_statuses.html.twig.

Parameters

array $variables: An associative array containing:

  • entity: The entity which status we want to display.
  • source_langcode: The language code.
  • statuses: The source statuses, keyed by language code. The keys are:
    • status: The status for that translation.
    • url: An optional \Drupal\Core\Url object.
    • new_window: A flag indicating if the link should be opened in a new window.
    • status_text: The status text, mainly though for link title.
    • language: The language code.

File

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

Code

function template_preprocess_lingotek_target_statuses(&$variables) {
}