You are here

public function Simplest::promptCallback in Examples for Developers 8

Same name and namespace in other branches
  1. 3.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

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'];
}