function Simplest::promptCallback

Same name and namespace in other branches
  1. 4.0.x modules/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\Form

Code

public function promptCallback($form, FormStateInterface $form_state) {
    return $form['replace_textfield_container'];
}