FieldMappingInterface.php in Webform Content Creator 3.x
File
src/Plugin/FieldMappingInterface.php
View source
<?php
namespace Drupal\webform_content_creator\Plugin;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\webform\WebformSubmissionInterface;
interface FieldMappingInterface extends PluginInspectionInterface {
const WEBFORM_OPTIONS_ELEMENTS = [
"checkboxes",
"webform_checkboxes_other",
"webform_likert",
"radios",
"webform_radios_other",
"select",
"webform_select_other",
"tableselect",
"webform_tableselect_sort",
"webform_table_sort",
];
const WEBFORM_ENTIY_REFERENCE_ELEMENTS = [
"entity_autocomplete",
"webform_entity_checkboxes",
"webform_entity_radios",
"webform_entity_select",
"webform_term_checkboxes",
"webform_term_select",
];
const WEBFORM_TEXT_ELEMENTS = [
"textarea",
"textfield",
"hidden",
];
public function supportsCustomFields();
public function getEntityComponentFields(FieldDefinitionInterface $field_definition);
public function getSupportedWebformFields($webform_id);
public function mapEntityField(ContentEntityInterface &$content, array $webform_element, array $data = [], FieldDefinitionInterface $field_definition);
}