You are here

public function LingotekConfigTranslationService::getConfigTranslatableProperties in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8 src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  2. 8.2 src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  3. 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  4. 3.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  5. 3.1.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  6. 3.2.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  7. 3.3.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  8. 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  9. 3.6.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  10. 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigTranslatableProperties()
  11. 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 129

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

public function getConfigTranslatableProperties(ConfigNamesMapper $mapper) {

  /** @var \Drupal\Core\Config\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;
}