You are here

public function ContentExportSettingForm::buildForm in Content Export YAML 8

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 ConfigFormBase::buildForm

File

src/Form/ContentExportSettingForm.php, line 34

Class

ContentExportSettingForm
Class ContentExportSettingForm.

Namespace

Drupal\content_export_yaml\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('content_export_yaml.contentexportsetting');
  $form['path_export_content_folder'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Path export content folder'),
    '#description' => $this
      ->t('This folder path where your content will store , Example : /sites/default/files'),
    '#maxlength' => 64,
    '#size' => 64,
    '#default_value' => $config
      ->get('path_export_content_folder'),
  ];
  return parent::buildForm($form, $form_state);
}