You are here

protected function YamlFormEntityListBuilder::getTotal in YAML Form 8

Get the total number of submissions.

Parameters

string $keys: (optional) Search key.

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

Return value

int The total number of submissions.

1 call to YamlFormEntityListBuilder::getTotal()
YamlFormEntityListBuilder::render in src/YamlFormEntityListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

src/YamlFormEntityListBuilder.php, line 262

Class

YamlFormEntityListBuilder
Defines a class to build a listing of form entities.

Namespace

Drupal\yamlform

Code

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