You are here

public function WebformSubmissionStorageInterface::loadByEntities in Webform 8.5

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

Load webform submissions by their related entity references.

Parameters

\Drupal\webform\WebformInterface|null $webform: (optional) The webform that the submission token is associated with.

\Drupal\Core\Entity\EntityInterface|null $source_entity: (optional) A webform submission source entity.

\Drupal\Core\Session\AccountInterface|null $account: (optional) A user account.

Return value

\Drupal\webform\WebformSubmissionInterface[] An array of webform submission objects indexed by their ids.

1 method overrides WebformSubmissionStorageInterface::loadByEntities()
WebformSubmissionStorage::loadByEntities in src/WebformSubmissionStorage.php
Load webform submissions by their related entity references.

File

src/WebformSubmissionStorageInterface.php, line 92

Class

WebformSubmissionStorageInterface
Defines an interface for webform submission classes.

Namespace

Drupal\webform

Code

public function loadByEntities(WebformInterface $webform, EntityInterface $source_entity = NULL, AccountInterface $account = NULL);