You are here

public function LingotekInterfaceTranslationService::getTargetStatuses in Lingotek Translation 3.2.x

Same name and namespace in other branches
  1. 4.0.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
  2. 3.3.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
  3. 3.4.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
  4. 3.5.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
  5. 3.6.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
  6. 3.7.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
  7. 3.8.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()

Gets the translation statuses of a given component translation for all locales.

Parameters

string $component: The component which status we want to get.

Return value

array The statuses of the target translation keyed by langcode (see Lingotek class constants for the values)

Overrides LingotekInterfaceTranslationServiceInterface::getTargetStatuses

1 call to LingotekInterfaceTranslationService::getTargetStatuses()
LingotekInterfaceTranslationService::getTargetStatus in src/LingotekInterfaceTranslationService.php
Gets the translation status of a given component translation for a locale.

File

src/LingotekInterfaceTranslationService.php, line 294

Class

LingotekInterfaceTranslationService
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

public function getTargetStatuses($component) {
  $metadata = $this
    ->getMetadata($component);
  return isset($metadata['translation_status']) ? $metadata['translation_status'] : [];
}