public function LingotekConfigTranslationService::getConfigTranslatableProperties in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.1.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.2.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.3.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.4.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.6.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
- 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
Gets the configuration translatable properties of the given mapper.
Parameters
\Drupal\config_translation\ConfigNamesMapper $mapper: The mapper.
Return value
array Canonical names of the translatable properties.
Overrides LingotekConfigTranslationServiceInterface::getConfigTranslatableProperties
1 call to LingotekConfigTranslationService::getConfigTranslatableProperties()
- LingotekConfigTranslationService::getConfigSourceData in src/
LingotekConfigTranslationService.php - Returns the source data that will be uploaded to the Lingotek service.
File
- src/
LingotekConfigTranslationService.php, line 133 - Contains \Drupal\lingotek\LingotekConfigTranslationService.
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
public function getConfigTranslatableProperties(ConfigNamesMapper $mapper) {
/** @var TypedConfigManagerInterface $typed_config */
$typed_config = \Drupal::service('config.typed');
$properties = [];
foreach ($mapper
->getConfigNames() as $name) {
$schema = $typed_config
->get($name);
$properties[$name] = $this
->getTranslatableProperties($schema, NULL);
}
return $properties;
}