You are here

public function EntityExportCsvTrait::ajaxReplaceFieldsCallback in Entity Export CSV 8

Ajax replace callback.

Parameters

array $form: The form.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

array The fields form.

File

src/Form/EntityExportCsvTrait.php, line 52

Class

EntityExportCsvTrait
Provides a trait for Entity Export Csv form.

Namespace

Drupal\entity_export_csv\Form

Code

public function ajaxReplaceFieldsCallback(array $form, FormStateInterface $form_state) {
  return $form['bundle_wrapper']['fields'];
}