public function LingotekInterfaceTranslationService::getTargetStatuses in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 4.0.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
- 3.2.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
- 3.3.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
- 3.4.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
- 3.5.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
- 3.6.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getTargetStatuses()
- 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 331
Class
- LingotekInterfaceTranslationService
- Service for managing Lingotek interface translations.
Namespace
Drupal\lingotekCode
public function getTargetStatuses($component) {
$metadata = $this
->getMetadata($component);
return isset($metadata['translation_status']) ? $metadata['translation_status'] : [];
}