public function WebformSubmissionStorage::addQueryConditions in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::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.
Overrides WebformSubmissionStorageInterface::addQueryConditions
6 calls to WebformSubmissionStorage::addQueryConditions()
- WebformSubmissionStorage::deleteAll in src/
WebformSubmissionStorage.php - Delete all webform submissions.
- WebformSubmissionStorage::getMaxSubmissionId in src/
WebformSubmissionStorage.php - Get the maximum sid.
- WebformSubmissionStorage::getSiblingSubmission in src/
WebformSubmissionStorage.php - Get a webform submission's sibling.
- WebformSubmissionStorage::getTerminusSubmission in src/
WebformSubmissionStorage.php - Get a webform submission's terminus (aka first or last).
- WebformSubmissionStorage::getTotal in src/
WebformSubmissionStorage.php - Get the total number of submissions.
File
- src/
WebformSubmissionStorage.php, line 388
Class
- WebformSubmissionStorage
- Defines the webform submission storage.
Namespace
Drupal\webformCode
public function addQueryConditions(AlterableInterface $query, WebformInterface $webform = NULL, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, array $options = []) {
$this
->_addQueryConditions($query, $webform, $source_entity, $account, $options);
}