You are here

public function WebformSubmissionStorageInterface::addQueryConditions in Webform 8.5

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

Add condition to submission query.

Parameters

\Drupal\Core\Database\Query\AlterableInterface $query: The query instance.

\Drupal\webform\WebformInterface $webform: (optional) A webform.

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

\Drupal\Core\Session\AccountInterface $account: (optional) The current user account.

array $options: (optional) Additional options and query conditions. Options/conditions include:

  • in_draft (boolean): NULL will return all saved submissions and drafts. Defaults to NULL
  • check_source_entity (boolean): Check that a source entity is defined.
  • interval (int): Limit total within an seconds interval.
1 method overrides WebformSubmissionStorageInterface::addQueryConditions()
WebformSubmissionStorage::addQueryConditions in src/WebformSubmissionStorage.php
Add condition to submission query.

File

src/WebformSubmissionStorageInterface.php, line 240

Class

WebformSubmissionStorageInterface
Defines an interface for webform submission classes.

Namespace

Drupal\webform

Code

public function addQueryConditions(AlterableInterface $query, WebformInterface $webform = NULL, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, array $options = []);