function hook_webform_element_input_masks in Webform 6.x
Same name and namespace in other branches
- 8.5 webform.api.php \hook_webform_element_input_masks()
Return information about input masks for text based webform elements.
Return value
array Return an array of input masks for text based webform elements.
See also
\Drupal\webform\Plugin\WebformElement\TextBase::getInputMasks
1 function implements hook_webform_element_input_masks()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- webform_test_element_input_masks_webform_element_input_masks in tests/
modules/ webform_test_element_input_masks/ webform_test_element_input_masks.module - Implements hook_webform_element_input_masks().
1 invocation of hook_webform_element_input_masks()
- TextBase::getInputMasks in src/
Plugin/ WebformElement/ TextBase.php - Get input masks.
File
- ./
webform.api.php, line 282 - Hooks related to Webform module.
Code
function hook_webform_element_input_masks() {
$input_masks = [];
$input_masks["'alias': 'date'"] = [
'title' => t('Date'),
'example' => '01/01/2000',
'mask' => 'dd/mm/yyyy',
];
return $input_masks;
}