function Callbacks::advancedCommandsChangedAsteriskCallback
Ajax form callback: Selects 'changed' with asterisk marking inner div.
File
-
core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Callbacks.php, line 171
Class
- Callbacks
- Simple object for testing methods as Ajax callbacks.
Namespace
Drupal\ajax_forms_testCode
public static function advancedCommandsChangedAsteriskCallback($form, FormStateInterface $form_state) : AjaxResponse {
$response = new AjaxResponse();
$response->addCommand(new ChangedCommand('#changed_div', '#changed_div_mark_this'));
return $response;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.