You are here

FilebrowserSettingsForm.php in Filebrowser 8

File

lib/Drupal/filebrowser/Entity/Form/FilebrowserSettingsForm.php
View source
<?php

/**
* @file
* Defines Drupal\filebrowser\Entity\Form\FilebrowserSettingsForm.
*/
namespace Drupal\filebrowser\Entity\Form;

use Drupal\Core\Form\FormBase;
class FilebrowserSettingsForm extends FormBase {

  /**
  * Returns a unique string identifying the form.
  *
  * @return string
  *   The unique string identifying the form.
  */
  public function getFormId() {
    return 'filebrowser_settings';
  }

  /**
   * Form submission handler.
   *
   * @param array $form
   *   An associative array containing the structure of the form.
   * @param array $form_state
   *   An associative array containing the current state of the form.
   */
  public function submitForm(array &$form, array &$form_state) {

    // Empty implementation of the abstract submit class.
  }

  /**
   * Define the form used for settings.
   * @return array
   *   Form definition array.
   *
   * @param array $form
   *   An associative array containing the structure of the form.
   * @param array $form_state
   *   An associative array containing the current state of the form.
   */
  public function buildForm(array $form, array &$form_state) {
    $form['filebrowser_settings']['#markup'] = 'Settings form for FooBar. Manage field settings here.';
    return $form;
  }

}

Classes