function DummyAjaxWidget::dummyAjaxCallback
Same name in other branches
- 9 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php \Drupal\image_module_test\Plugin\Field\FieldWidget\DummyAjaxWidget::dummyAjaxCallback()
- 10 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldWidget/DummyAjaxWidget.php \Drupal\image_module_test\Plugin\Field\FieldWidget\DummyAjaxWidget::dummyAjaxCallback()
- 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\FieldWidgetCode
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.