You are here

public function FeaturesExportForm::updatePreview in Features 8.4

Same name and namespace in other branches
  1. 8.3 modules/features_ui/src/Form/FeaturesExportForm.php \Drupal\features_ui\Form\FeaturesExportForm::updatePreview()

Handles switching the configuration type selector.

File

modules/features_ui/src/Form/FeaturesExportForm.php, line 220

Class

FeaturesExportForm
Defines the configuration export form.

Namespace

Drupal\features_ui\Form

Code

public function updatePreview($form, FormStateInterface $form_state) {

  // We should really be able to add this pre_render callback to the
  // 'preview' element. However, since doing so leads to an error (no rows
  // are displayed), we need to instead explicitly invoke it here for the
  // processing to apply to the Ajax-rendered form element.
  $form = $this
    ->preRenderRemoveInvalidCheckboxes($form);
  return $form['preview'];
}