FlipbookSettingsForm.php in 3D Flipbook 8
Namespace
Drupal\flipbook\FormFile
src/Form/FlipbookSettingsForm.phpView source
<?php
namespace Drupal\flipbook\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class ContentEntityExampleSettingsForm.
*
* @package Drupal\content_entity_example\Form
* @ingroup content_entity_example
*/
class FlipbookSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'flipbook_settings';
}
/**
* Form submission handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* An associative array containing the current state of the form.
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty implementation of the abstract submit class.
}
/**
* Define the form used for FlipbookEntity settings.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* An associative array containing the current state of the form.
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['flipbook_settings']['#markup'] = 'Settings form for FlipbookEntity. Manage field settings here.';
return $form;
}
}
Classes
Name | Description |
---|---|
FlipbookSettingsForm | Class ContentEntityExampleSettingsForm. |