public function LingotekConfigTranslationService::checkConfigSourceStatus in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.1.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.2.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.3.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.4.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.6.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
- 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkConfigSourceStatus()
Checks the source is uploaded correctly.
Parameters
string $mapper_id: The entity which status we want to check.
Return value
boolean True if the entity is uploaded successfully.
Overrides LingotekConfigTranslationServiceInterface::checkConfigSourceStatus
File
- src/
LingotekConfigTranslationService.php, line 788 - Contains \Drupal\lingotek\LingotekConfigTranslationService.
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
public function checkConfigSourceStatus($mapper_id) {
$mapper = $this->mappers[$mapper_id];
$document_id = $this
->getConfigDocumentId($mapper);
if ($document_id && $this->lingotek
->getDocumentStatus($document_id)) {
$this
->setConfigSourceStatus($mapper, Lingotek::STATUS_CURRENT);
return TRUE;
}
return FALSE;
}