protected function WebformSubmissionLimitBlock::getCurrentUser in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/Block/WebformSubmissionLimitBlock.php \Drupal\webform\Plugin\Block\WebformSubmissionLimitBlock::getCurrentUser()
Get the current user account.
Return value
\Drupal\Core\Session\AccountInterface|null The current user account or NULL if the user limit is not being displayed.
1 call to WebformSubmissionLimitBlock::getCurrentUser()
- WebformSubmissionLimitBlock::getTotal in src/
Plugin/ Block/ WebformSubmissionLimitBlock.php - Get total number of submissions for selected limit type.
File
- src/
Plugin/ Block/ WebformSubmissionLimitBlock.php, line 505
Class
- WebformSubmissionLimitBlock
- Provides a 'Webform submission limit' block.
Namespace
Drupal\webform\Plugin\BlockCode
protected function getCurrentUser() {
return $this->configuration['type'] === 'user' ? $this->currentUser : NULL;
}