You are here

public function SwitchPageThemeSettingForm::addmoreCallback in Switch Page Theme 8

Same name and namespace in other branches
  1. 8.3 src/Form/SwitchPageThemeSettingForm.php \Drupal\switch_page_theme\Form\SwitchPageThemeSettingForm::addmoreCallback()
  2. 8.2 src/Form/SwitchPageThemeSettingForm.php \Drupal\switch_page_theme\Form\SwitchPageThemeSettingForm::addmoreCallback()

Callback for ajax-enabled add buttons.

Selects and returns the fieldset with the names in it.

File

src/Form/SwitchPageThemeSettingForm.php, line 331

Class

SwitchPageThemeSettingForm
Configuration page for Switch page theme settings.

Namespace

Drupal\switch_page_theme\Form

Code

public function addmoreCallback(array &$form, FormStateInterface $form_state) {
  return $form['spt_table'];
}