FilebrowserSettingsForm.php in Filebrowser 8
Namespace
Drupal\filebrowser\Entity\FormFile
lib/Drupal/filebrowser/Entity/Form/FilebrowserSettingsForm.phpView 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
Name | Description |
---|---|
FilebrowserSettingsForm |