You are here

public function SwitchPageThemeSettingForm::removeCallback 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::removeCallback()
  2. 8.2 src/Form/SwitchPageThemeSettingForm.php \Drupal\switch_page_theme\Form\SwitchPageThemeSettingForm::removeCallback()

Callback for ajax-enabled remove buttons.

Selects and returns the fieldset with the names in it.

File

src/Form/SwitchPageThemeSettingForm.php, line 352

Class

SwitchPageThemeSettingForm
Configuration page for Switch page theme settings.

Namespace

Drupal\switch_page_theme\Form

Code

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