function DummyAjaxWidget::dummyAjaxCallback

Same name in other branches
  1. 8.9.x core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php \Drupal\image_module_test\Plugin\Field\FieldWidget\DummyAjaxWidget::dummyAjaxCallback()
  2. 10 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php \Drupal\image_module_test\Plugin\Field\FieldWidget\DummyAjaxWidget::dummyAjaxCallback()
  3. 11.x core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php \Drupal\image_module_test\Plugin\Field\FieldWidget\DummyAjaxWidget::dummyAjaxCallback()

Ajax callback for Dummy AJAX test.

Parameters

array $form: The build form.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

\Drupal\Core\Ajax\AjaxResponse Ajax response.

File

core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php, line 53

Class

DummyAjaxWidget
Default widget for Dummy AJAX test.

Namespace

Drupal\image_module_test\Plugin\Field\FieldWidget

Code

public static function dummyAjaxCallback(array &$form, FormStateInterface $form_state) {
    return new AjaxResponse();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.