You are here

public function WebformSubmission::getDataHash in Webform 6.x

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

Get a webform submission data as a hash view.

Return value

string Webform submission data as a hash view.

Overrides WebformSubmissionInterface::getDataHash

File

src/Entity/WebformSubmission.php, line 493

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function getDataHash() {
  if (isset($this->dataHash)) {
    return $this->dataHash;
  }
  $this->dataHash = Crypt::hmacBase64(serialize($this
    ->getRawData()), Settings::getHashSalt());
  return $this->dataHash;
}