You are here

public function ContentExportForm::buildForm in Content Synchronization 8.2

Same name and namespace in other branches
  1. 8 src/Form/ContentExportForm.php \Drupal\content_sync\Form\ContentExportForm::buildForm()
  2. 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 66

Class

ContentExportForm
Defines the content export form.

Namespace

Drupal\content_sync\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['submit'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Export'),
  ];
  return $form;
}