public function TextFieldMapping::getSupportedWebformFields in Webform Content Creator 3.x
Parameters
$webform_id:
Return value
mixed
Overrides FieldMappingBase::getSupportedWebformFields
File
- src/
Plugin/ WebformContentCreator/ FieldMapping/ TextFieldMapping.php, line 31
Class
- TextFieldMapping
- Provides a text field mapping.
Namespace
Drupal\webform_content_creator\Plugin\WebformContentCreator\FieldMappingCode
public function getSupportedWebformFields($webform_id) {
$supported_types = array_merge([
"string",
"string_long",
"tel",
], FieldMappingInterface::WEBFORM_TEXT_ELEMENTS, FieldMappingInterface::WEBFORM_OPTIONS_ELEMENTS);
return $this
->filterWebformFields($webform_id, $supported_types);
}