public static function DummyAjaxWidget::dummyAjaxCallback in Drupal 10
Same name and namespace in other branches
- 8 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php \Drupal\image_module_test\Plugin\Field\FieldWidget\DummyAjaxWidget::dummyAjaxCallback()
- 9 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\FieldWidgetCode
public static function dummyAjaxCallback(array &$form, FormStateInterface $form_state) {
return new AjaxResponse();
}