You are here

public function WebformSubmissionStorageInterface::addQueryConditions in Webform 6.x

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

Add condition to submission query.

Parameters

\Drupal\Core\Database\Query\AlterableInterface|\Drupal\Core\Entity\Query\ConditionInterface $query: A SQL query or entity conditions.

\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 239

Class

WebformSubmissionStorageInterface
Defines an interface for webform submission classes.

Namespace

Drupal\webform

Code

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