class ContactSettingsForm
Same name in other branches
- 3.x modules/content_entity_example/src/Form/ContactSettingsForm.php \Drupal\content_entity_example\Form\ContactSettingsForm
- 4.0.x modules/content_entity_example/src/Form/ContactSettingsForm.php \Drupal\content_entity_example\Form\ContactSettingsForm
Class ContentEntityExampleSettingsForm.
Hierarchy
- class \Drupal\content_entity_example\Form\ContactSettingsForm extends \Drupal\Core\Form\FormBase
Expanded class hierarchy of ContactSettingsForm
Related topics
1 string reference to 'ContactSettingsForm'
- content_entity_example.routing.yml in content_entity_example/
content_entity_example.routing.yml - content_entity_example/content_entity_example.routing.yml
File
-
content_entity_example/
src/ Form/ ContactSettingsForm.php, line 13
Namespace
Drupal\content_entity_example\FormView source
class ContactSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'content_entity_example_settings';
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty implementation of the abstract submit class.
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['contact_settings']['#markup'] = 'Settings form for ContentEntityExample. Manage field settings here.';
return $form;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ContactSettingsForm::buildForm | public | function | |
ContactSettingsForm::getFormId | public | function | Returns a unique string identifying the form. |
ContactSettingsForm::submitForm | public | function |