public function SmartlingConfigManager::getAvailableConfigs in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 src/Smartling/ConfigManager/SmartlingConfigManager.php \Drupal\tmgmt_smartling\Smartling\ConfigManager\SmartlingConfigManager::getAvailableConfigs()
Returns array of available smartling providers.
Return value
array
2 calls to SmartlingConfigManager::getAvailableConfigs()
- FirebaseConfigManager::getAvailableConfigs in src/
Smartling/ ConfigManager/ FirebaseConfigManager.php - Returns array of available smartling providers with enabled notifications.
- SmartlingConfigManager::getConfigByProjectId in src/
Smartling/ ConfigManager/ SmartlingConfigManager.php - Returns smartling provider config by project id.
1 method overrides SmartlingConfigManager::getAvailableConfigs()
- FirebaseConfigManager::getAvailableConfigs in src/
Smartling/ ConfigManager/ FirebaseConfigManager.php - Returns array of available smartling providers with enabled notifications.
File
- src/
Smartling/ ConfigManager/ SmartlingConfigManager.php, line 37 - FirebaseConfigManager.
Class
- SmartlingConfigManager
- Class SmartlingConfigManager.
Namespace
Drupal\tmgmt_smartling\Smartling\ConfigManagerCode
public function getAvailableConfigs() {
$configs = [];
$translator_ids = $this->configFactory
->listAll('tmgmt.translator');
foreach ($translator_ids as $id) {
$config = $this->configFactory
->get($id);
if ($config
->get('plugin') === 'smartling') {
$configs[] = $config;
}
}
return $configs;
}