public static function WebformSubmissionLimitBlock::tokenAjaxCallback in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/Block/WebformSubmissionLimitBlock.php \Drupal\webform\Plugin\Block\WebformSubmissionLimitBlock::tokenAjaxCallback()
Ajax callback that returns the block form.
File
- src/
Plugin/ Block/ WebformSubmissionLimitBlock.php, line 530
Class
- WebformSubmissionLimitBlock
- Provides a 'Webform submission limit' block.
Namespace
Drupal\webform\Plugin\BlockCode
public static function tokenAjaxCallback(array &$form, FormStateInterface $form_state) {
$settings = $form_state
->getValue('settings');
return static::buildTokens($settings['type'], $settings['source_entity']);
}