public function Simplest::promptCallback in Examples for Developers 3.x
Same name and namespace in other branches
- 8 ajax_example/src/Form/Simplest.php \Drupal\ajax_example\Form\Simplest::promptCallback()
Handles switching the available regions based on the selected theme.
File
- modules/
ajax_example/ src/ Form/ Simplest.php, line 76
Class
- Simplest
- A relatively simple AJAX demonstration form.
Namespace
Drupal\ajax_example\FormCode
public function promptCallback($form, FormStateInterface $form_state) {
return $form['replace_textfield_container'];
}