public function ContentExportForm::buildForm in Content Synchronization 8
Same name and namespace in other branches
- 8.2 src/Form/ContentExportForm.php \Drupal\content_sync\Form\ContentExportForm::buildForm()
- 3.0.x src/Form/ContentExportForm.php \Drupal\content_sync\Form\ContentExportForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
File
- src/
Form/ ContentExportForm.php, line 24
Class
- ContentExportForm
- Defines the content export form.
Namespace
Drupal\content_sync\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['submit'] = [
'#type' => 'submit',
'#value' => $this
->t('Export'),
];
return $form;
}