You are here

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

Parameters

$webform_id:

Return value

mixed

Overrides FieldMappingBase::getSupportedWebformFields

File

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

Class

DateTimeFieldMapping
Provides a datetime field mapping.

Namespace

Drupal\webform_content_creator\Plugin\WebformContentCreator\FieldMapping

Code

public function getSupportedWebformFields($webform_id) {
  $supported_types = [
    "changed",
    "created",
    "date",
    "datetime",
    "datelist",
    "timestamp",
    "webform_time",
  ];
  return $this
    ->filterWebformFields($webform_id, $supported_types);
}