Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

bhaskar-chakraborty created an issue.

bhaskar-chakraborty’s picture

$contact = $entityTypeManager->getStorage('contact_message')->create([
'bundle' => 'contact_form',
'type' => 'feedback',
'field_your_name' =>$name,
'field_your_phone_number_new' =>$phone,
'field_your_email_address'=>$email_address,
'field_text'=>$text,
'field_region_country'=> ['target_id' => $contry_code],
'name' => $name,
$entity_keys['bundle'] => 'feedback',
]);
$contact->save();
Use the above to save an contact webform entity.