You are here

public function ContentExportForm::buildForm in Content Export CSV 8

*

Overrides FormInterface::buildForm

File

src/Form/ContentExportForm.php, line 22

Class

ContentExportForm

Namespace

Drupal\content_export_csv\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $export_object = new ContentExportController();
  $form['content_type_list'] = [
    '#title' => $this
      ->t('Content Type'),
    '#type' => 'select',
    '#options' => $export_object
      ->getContentType(),
  ];
  $form['export'] = [
    '#value' => 'Export',
    '#type' => 'submit',
  ];
  return $form;
}