You are here

protected function WebformEntityListBuilder::getTotal in Webform 6.x

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

Get the total number of submissions.

Parameters

string $keys: (optional) Search key.

string $category: (optional) Category.

string $state: (optional) Webform state. Can be 'open' or 'closed'.

Return value

int The total number of submissions.

2 calls to WebformEntityListBuilder::getTotal()
WebformEntityListBuilder::buildFilterForm in src/WebformEntityListBuilder.php
Build the filter form.
WebformEntityListBuilder::buildInfo in src/WebformEntityListBuilder.php
Build information summary.

File

src/WebformEntityListBuilder.php, line 465

Class

WebformEntityListBuilder
Defines a class to build a listing of webform entities.

Namespace

Drupal\webform

Code

protected function getTotal($keys = '', $category = '', $state = '') {
  return $this
    ->getQuery($keys, $category, $state)
    ->count()
    ->execute();
}