You are here

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

Parameters

$webform_id:

Return value

mixed

Overrides FieldMappingBase::getSupportedWebformFields

File

src/Plugin/WebformContentCreator/FieldMapping/BooleanFieldMapping.php, line 26

Class

BooleanFieldMapping
Provides a boolean field mapping.

Namespace

Drupal\webform_content_creator\Plugin\WebformContentCreator\FieldMapping

Code

public function getSupportedWebformFields($webform_id) {
  $supported_types = [
    "boolean",
    "checkbox",
  ];
  return $this
    ->filterWebformFields($webform_id, $supported_types);
}