You are here

public function FieldMappingInterface::mapEntityField in Webform Content Creator 3.x

Use a single mapping to set an entity field value.

Parameters

\Drupal\Core\Entity\ContentEntityInterface &$content: Content being mapped with a webform submission.

array $webform_element: Webform element

array $data: Webform submission data.

FieldDefinitionInterface $field_definition: Entity field defintition.

Return value

\Drupal\Core\Entity\ContentEntityInterface Created content item.

1 method overrides FieldMappingInterface::mapEntityField()
FieldMappingBase::mapEntityField in src/Plugin/FieldMappingBase.php
Use a single mapping to set an entity field value.

File

src/Plugin/FieldMappingInterface.php, line 80

Class

FieldMappingInterface
Interface for the field mapping.

Namespace

Drupal\webform_content_creator\Plugin

Code

public function mapEntityField(ContentEntityInterface &$content, array $webform_element, array $data = [], FieldDefinitionInterface $field_definition);