protected function YamlFormSubmissionListBuilder::getTotal in YAML Form 8
Get the total number of submissions.
Parameters
string $keys: (optional) Search key.
string $state: (optional) Submission state. Can be 'starred' or 'unstarred'.
Return value
int The total number of submissions.
1 call to YamlFormSubmissionListBuilder::getTotal()
- YamlFormSubmissionListBuilder::render in src/
YamlFormSubmissionListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
File
- src/
YamlFormSubmissionListBuilder.php, line 593
Class
- YamlFormSubmissionListBuilder
- Provides a list controller for yamlform submission entity.
Namespace
Drupal\yamlformCode
protected function getTotal($keys = '', $state = '') {
return $this
->getQuery($keys, $state)
->count()
->execute();
}