You are here

protected function WebformAjaxFormTrait::getDefaultAjaxSettings in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformAjaxFormTrait.php \Drupal\webform\Form\WebformAjaxFormTrait::getDefaultAjaxSettings()

Get default ajax callback settings.

Return value

array An associative array containing default ajax callback settings.

1 call to WebformAjaxFormTrait::getDefaultAjaxSettings()
WebformAjaxFormTrait::buildAjaxForm in src/Form/WebformAjaxFormTrait.php
Add Ajax support to a form.
1 method overrides WebformAjaxFormTrait::getDefaultAjaxSettings()
WebformEntityAjaxFormTrait::getDefaultAjaxSettings in src/Form/WebformEntityAjaxFormTrait.php
Get default ajax callback settings.

File

src/Form/WebformAjaxFormTrait.php, line 57

Class

WebformAjaxFormTrait
Trait class for Webform Ajax support.

Namespace

Drupal\webform\Form

Code

protected function getDefaultAjaxSettings() {
  return [
    'disable-refocus' => TRUE,
    'effect' => 'fade',
    'speed' => 1000,
    'progress' => [
      'type' => 'throbber',
      'message' => '',
    ],
  ];
}