You are here

public function NumericFieldMapping::getSupportedWebformFields in Webform Content Creator 3.x

Parameters

$webform_id:

Return value

mixed

Overrides FieldMappingBase::getSupportedWebformFields

File

src/Plugin/WebformContentCreator/FieldMapping/NumericFieldMapping.php, line 29

Class

NumericFieldMapping
Provides numeric field mapping.

Namespace

Drupal\webform_content_creator\Plugin\WebformContentCreator\FieldMapping

Code

public function getSupportedWebformFields($webform_id) {
  $supported_types = array_merge([
    "integer",
    "number",
    "range",
    "webform_scale",
  ], FieldMappingInterface::WEBFORM_OPTIONS_ELEMENTS);
  return $this
    ->filterWebformFields($webform_id, $supported_types);
}