protected function LingotekImportForm::documentsCount in Lingotek Translation 8
1 call to LingotekImportForm::documentsCount()
- LingotekImportForm::buildForm in src/
Form/ LingotekImportForm.php - Form constructor.
File
- src/
Form/ LingotekImportForm.php, line 215 - Contains \Drupal\Lingotek\Form\LingotekManagementForm.
Class
- LingotekImportForm
- @file Contains \Drupal\Lingotek\Form\LingotekManagementForm.
Namespace
Drupal\lingotek\FormCode
protected function documentsCount($args = array()) {
$translation_service = \Drupal::service('lingotek.content_translation');
$response = $this->lingotek
->downloadDocuments($args);
$data = json_decode($response);
return $data->properties->total;
}