You are here

public function Admin::buildForm in Pack & Upload 8

Same name and namespace in other branches
  1. 2.0.x lib/Drupal/pack_upload/Form/Admin.php \Drupal\pack_upload\Form\Admin::buildForm()

Overrides ConfigFormBase::buildForm

See also

\Drupal\Core\Form\ConfigFormBase::buildForm()

File

lib/Drupal/pack_upload/Form/Admin.php, line 26
This file contains the code for Admin settings form.

Class

Admin

Namespace

Drupal\pack_upload\Form

Code

public function buildForm(array $form, array &$form_state) {
  $form['panel'] = array(
    '#title' => t('Bulk Media Uploader'),
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
  );
  $config = $this
    ->config('pack_upload.settings');
  $form['panel']['path'] = array(
    '#title' => t('Bulk Media Extraction Directory'),
    '#type' => 'textfield',
    '#required' => TRUE,
    '#description' => t('Name of the directory where you want all files to be extracted.'),
    '#default_value' => $config
      ->get('path'),
  );
  return parent::buildForm($form, $form_state);
}