You are here

public static function WebformSubmissionLimitBlock::getTokenAjaxSettings in Webform 8.5

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

Get token refresh Ajax settings.

Return value

array Array containing #ajax settings.

1 call to WebformSubmissionLimitBlock::getTokenAjaxSettings()
WebformSubmissionLimitBlock::blockForm in src/Plugin/Block/WebformSubmissionLimitBlock.php

File

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

Class

WebformSubmissionLimitBlock
Provides a 'Webform submission limit' block.

Namespace

Drupal\webform\Plugin\Block

Code

public static function getTokenAjaxSettings() {
  return [
    'callback' => [
      get_called_class(),
      'tokenAjaxCallback',
    ],
    'wrapper' => 'webform-submission-limit-block-tokens',
    'progress' => [
      'type' => 'fullscreen',
    ],
  ];
}