You are here

function hook_webform_element_translatable_properties_alter in Webform 8.5

Same name and namespace in other branches
  1. 6.x webform.api.php \hook_webform_element_translatable_properties_alter()

Alter a webform element's translatable properties.

Parameters

array &$properties: An indexed array containing an element's translatable properties.

array $definition: The webform element's definition.

See also

webform_example_element_properties.module

1 function implements hook_webform_element_translatable_properties_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

webform_example_element_properties_webform_element_translatable_properties_alter in modules/webform_example_element_properties/webform_example_element_properties.module
Implements hook_webform_element_translatable_properties_alter().
1 invocation of hook_webform_element_translatable_properties_alter()
WebformElementBase::getTranslatableProperties in src/Plugin/WebformElementBase.php
Get translatable properties.

File

./webform.api.php, line 83
Hooks related to Webform module.

Code

function hook_webform_element_translatable_properties_alter(array &$properties, array &$definition) {

  // Make the custom data property translatable.
  $properties[] = 'custom_data';
}