protected function OptionsLimitWebformHandler::getBooleanTotal in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php \Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler::getBooleanTotal()
Get boolean submission total for the current webform and source entity.
Return value
int Boolean totals.
2 calls to OptionsLimitWebformHandler::getBooleanTotal()
- OptionsLimitWebformHandler::getBooleanLimits in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Get an associative array of boolean limits.
- OptionsLimitWebformHandler::validateBooleanElement in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Validate a boolean element with limit(s).
File
- modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php, line 1319
Class
- OptionsLimitWebformHandler
- Webform options and boolean (boolean) limit handler.
Namespace
Drupal\webform_options_limit\Plugin\WebformHandlerCode
protected function getBooleanTotal() {
$query = $this
->getTotalQuery();
if (!$query) {
return NULL;
}
$query
->condition('sd.value', '1');
return $query
->countQuery()
->execute()
->fetchField();
}