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