Error message

Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).

public function WebformConfigProcessor::convertToTranslation

Converts a translated data structure.

Parameters

array $data: The translated data structure.

Return value

array Returns a translation array as expected by \Drupal\config_translation\FormElement\ElementInterface::setConfig().

Overrides DefaultConfigProcessor::convertToTranslation

File

sources/tmgmt_config/src/WebformConfigProcessor.php, line 69

Class

WebformConfigProcessor

Namespace

Drupal\tmgmt_config

Code

public function convertToTranslation($data) {
  $translation = parent::convertToTranslation($data);
  if (isset($translation['elements'])) {
    $translation['elements'] = Yaml::encode($this
      ->convertTranslationToElements($translation['elements']));
  }
  return $translation;
}