You are here

public function YamlFormElementManager::getTranslatableProperties in YAML Form 8

Get all translatable properties from all elements.

Return value

array An array of translatable properties.

Overrides YamlFormElementManagerInterface::getTranslatableProperties

File

src/YamlFormElementManager.php, line 163

Class

YamlFormElementManager
Provides a plugin manager for form element plugins.

Namespace

Drupal\yamlform

Code

public function getTranslatableProperties() {
  $properties = [];
  $yamlform_elements = $this
    ->getInstances();
  foreach ($yamlform_elements as $yamlform_element) {
    $translatable_properties = $yamlform_element
      ->getTranslatableProperties();
    $properties += array_combine($translatable_properties, $translatable_properties);
  }
  ksort($properties);
  return $properties;
}