You are here

protected function WebformSubmissionLimitBlock::getIntervalText in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/Block/WebformSubmissionLimitBlock.php \Drupal\webform\Plugin\Block\WebformSubmissionLimitBlock::getIntervalText()

Get submission limit interval text.

Return value

string The submission limit interval or FALSE if not submission limit is defined.

1 call to WebformSubmissionLimitBlock::getIntervalText()
WebformSubmissionLimitBlock::replaceTokens in src/Plugin/Block/WebformSubmissionLimitBlock.php
Replace tokens in text.

File

src/Plugin/Block/WebformSubmissionLimitBlock.php, line 409

Class

WebformSubmissionLimitBlock
Provides a 'Webform submission limit' block.

Namespace

Drupal\webform\Plugin\Block

Code

protected function getIntervalText() {
  return WebformDateHelper::getIntervalText($this
    ->getInterval());
}