You are here

public function MigrateSourceUiAdminSettingsForm::buildForm in Migrate source UI 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/MigrateSourceUiAdminSettingsForm.php, line 32

Class

MigrateSourceUiAdminSettingsForm
Settings form class.

Namespace

Drupal\migrate_source_ui\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config(self::CONFIG_NAME);
  $form['file_temp_directory'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Temporary file directory'),
    '#description' => $this
      ->t("Directory where the uploaded source\n        file will live temporarily. Should follow the full Drupal stream syntax,\n        e.g.: <code>private://tmp</code>. The module will use Drupal's default\n        <code>temporary://</code> stream if this is not set."),
    '#default_value' => $config
      ->get('file_temp_directory'),
  ];
  return parent::buildForm($form, $form_state);
}