You are here

public function WebformProtectedDownloads::getWebformSubmission in Webform Protected Downloads 8

Return WebformSubmission.

Return value

\Drupal\webform\Entity\WebformSubmission Return WebformSubmission.

File

src/Entity/WebformProtectedDownloads.php, line 35

Class

WebformProtectedDownloads
Defines the Webform protected downloads entity.

Namespace

Drupal\webform_protected_downloads\Entity

Code

public function getWebformSubmission() {
  return $this
    ->get('webform_submission')
    ->first()
    ->get('entity')
    ->getTarget()
    ->getValue();
}