You are here

public function WebformProtectedDownloadsStorage::getByWebformSubmission in Webform Protected Downloads 8

Overrides WebformProtectedDownloadsStorageInterface::getByWebformSubmission

File

src/WebformProtectedDownloadsStorage.php, line 16

Class

WebformProtectedDownloadsStorage

Namespace

Drupal\webform_protected_downloads

Code

public function getByWebformSubmission(WebformSubmission $webformSubmission) {
  return $this
    ->loadByProperties([
    'webform_submission' => $webformSubmission
      ->id(),
  ]);
}