protected function WebformTermsOfService::defineTranslatableProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformTermsOfService.php \Drupal\webform\Plugin\WebformElement\WebformTermsOfService::defineTranslatableProperties()
Define an element's translatable properties.
Return value
array An array containing an element's translatable properties.
Overrides WebformElementBase::defineTranslatableProperties
File
- src/
Plugin/ WebformElement/ WebformTermsOfService.php, line 46
Class
- WebformTermsOfService
- Provides a 'terms_of_service' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineTranslatableProperties() {
return array_merge(parent::defineTranslatableProperties(), [
'terms_title',
'terms_content',
]);
}