You are here

public static function DummyAjaxWidget::dummyAjaxCallback in Drupal 9

Same name and namespace in other branches
  1. 8 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();
}