You are here

public function WebformSubmission::setData in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/WebformSubmission.php \Drupal\webform\Entity\WebformSubmission::setData()

Set the webform submission's data.

Parameters

array $data: The webform submission data.

Return value

$this

Overrides WebformSubmissionInterface::setData

File

src/Entity/WebformSubmission.php, line 461

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function setData(array $data) {
  $this->data = $data;
  $this->computedData = NULL;
  $this->dataHash = NULL;
  return $this;
}