You are here

public function YamlFormToggleTrait::getTranslatableProperties in YAML Form 8

File

src/Plugin/YamlFormElement/YamlFormToggleTrait.php, line 15

Class

YamlFormToggleTrait
Provides a 'toggle' trait.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getTranslatableProperties() {
  return array_merge(parent::getTranslatableProperties(), [
    'on_text',
    'off_text',
  ]);
}