protected function WebformSubmissionLimitBlock::getInterval in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/Block/WebformSubmissionLimitBlock.php \Drupal\webform\Plugin\Block\WebformSubmissionLimitBlock::getInterval()
Get submission limit interval.
Return value
int|bool The submission limit interval or FALSE if not submission limit is defined.
2 calls to WebformSubmissionLimitBlock::getInterval()
- WebformSubmissionLimitBlock::getIntervalText in src/
Plugin/ Block/ WebformSubmissionLimitBlock.php - Get submission limit interval text.
- WebformSubmissionLimitBlock::getTotal in src/
Plugin/ Block/ WebformSubmissionLimitBlock.php - Get total number of submissions for selected limit type.
File
- src/
Plugin/ Block/ WebformSubmissionLimitBlock.php, line 365
Class
- WebformSubmissionLimitBlock
- Provides a 'Webform submission limit' block.
Namespace
Drupal\webform\Plugin\BlockCode
protected function getInterval() {
$name = $this->configuration['source_entity'] ? 'entity_' : '';
$name .= $this->configuration['type'] === 'user' ? 'limit_user_interval' : 'limit_total_interval';
return $this
->getWebform()
->getSetting($name);
}