protected function WebformSubmissionsDeleteFormBase::getSubmissionTotal in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformSubmissionsDeleteFormBase.php \Drupal\webform\Form\WebformSubmissionsDeleteFormBase::getSubmissionTotal()
Get total number of submissions.
Return value
int Total number of submissions.
2 calls to WebformSubmissionsDeleteFormBase::getSubmissionTotal()
- WebformResultsClearForm::buildForm in src/
Form/ WebformResultsClearForm.php - Form constructor.
- WebformResultsClearForm::getDescription in src/
Form/ WebformResultsClearForm.php - Returns additional text to display as a description.
1 method overrides WebformSubmissionsDeleteFormBase::getSubmissionTotal()
- WebformSubmissionsPurgeForm::getSubmissionTotal in src/
Form/ WebformSubmissionsPurgeForm.php - Get total number of submissions.
File
- src/
Form/ WebformSubmissionsDeleteFormBase.php, line 246
Class
- WebformSubmissionsDeleteFormBase
- Base webform for deleting webform submission.
Namespace
Drupal\webform\FormCode
protected function getSubmissionTotal() {
if (!isset($this->submissionTotal)) {
$this->submissionTotal = $this->submissionStorage
->getTotal($this->webform, $this->sourceEntity, NULL, [
'in_draft' => NULL,
]);
}
return $this->submissionTotal;
}