You are here

protected function OptionsBase::defineTranslatableProperties in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/OptionsBase.php \Drupal\webform\Plugin\WebformElement\OptionsBase::defineTranslatableProperties()

Define an element's translatable properties.

Return value

array An array containing an element's translatable properties.

Overrides WebformElementBase::defineTranslatableProperties

2 calls to OptionsBase::defineTranslatableProperties()
Checkboxes::defineTranslatableProperties in src/Plugin/WebformElement/Checkboxes.php
Define an element's translatable properties.
WebformImageSelect::defineTranslatableProperties in modules/webform_image_select/src/Plugin/WebformElement/WebformImageSelect.php
Define an element's translatable properties.
2 methods override OptionsBase::defineTranslatableProperties()
Checkboxes::defineTranslatableProperties in src/Plugin/WebformElement/Checkboxes.php
Define an element's translatable properties.
WebformImageSelect::defineTranslatableProperties in modules/webform_image_select/src/Plugin/WebformElement/WebformImageSelect.php
Define an element's translatable properties.

File

src/Plugin/WebformElement/OptionsBase.php, line 131

Class

OptionsBase
Provides a base 'options' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineTranslatableProperties() {
  return array_merge(parent::defineTranslatableProperties(), [
    'options',
    'empty_option',
    'option_label',
  ]);
}