public function ContentExportForm::buildForm in Content Export CSV 8
*
Overrides FormInterface::buildForm
File
- src/
Form/ ContentExportForm.php, line 22
Class
Namespace
Drupal\content_export_csv\FormCode
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;
}