You are here

protected function WebformSubmissionsDeleteFormBase::getSubmissionTotal in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 218

Class

WebformSubmissionsDeleteFormBase
Base webform for deleting webform submission.

Namespace

Drupal\webform\Form

Code

protected function getSubmissionTotal() {
  if (!isset($this->submissionTotal)) {
    $this->submissionTotal = $this
      ->getSubmissionStorage()
      ->getTotal($this->webform, $this->sourceEntity, NULL, [
      'in_draft' => NULL,
    ]);
  }
  return $this->submissionTotal;
}