You are here

protected function WebformToggleTrait::translatableProperties in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_toggles/src/Plugin/WebformElement/WebformToggleTrait.php \Drupal\webform_toggles\Plugin\WebformElement\WebformToggleTrait::translatableProperties()

File

modules/webform_toggles/src/Plugin/WebformElement/WebformToggleTrait.php, line 26

Class

WebformToggleTrait
Provides a 'toggle' trait.

Namespace

Drupal\webform_toggles\Plugin\WebformElement

Code

protected function translatableProperties() {
  return array_merge(parent::defineTranslatableProperties(), [
    'on_text',
    'off_text',
  ]);
}