function FormInterface::getFormId
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::getFormId()
- 10 core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::getFormId()
- 8.9.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::getFormId()
Returns a unique string identifying the form.
The returned ID should be a unique string that can be a valid PHP function name, since it's used in hook implementation names such as hook_form_FORM_ID_alter().
Return value
string The unique string identifying the form.
55 methods override FormInterface::getFormId()
- AddBlockForm::getFormId in core/
modules/ layout_builder/ src/ Form/ AddBlockForm.php - Returns a unique string identifying the form.
- AjaxFormsTestValidationForm::getFormId in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Form/ AjaxFormsTestValidationForm.php - Returns a unique string identifying the form.
- AjaxTestFocusFirstForm::getFormId in core/
modules/ system/ tests/ modules/ ajax_test/ src/ Form/ AjaxTestFocusFirstForm.php - Returns a unique string identifying the form.
- ConfigTranslationAddForm::getFormId in core/
modules/ config_translation/ src/ Form/ ConfigTranslationAddForm.php - Returns a unique string identifying the form.
- ConfigTranslationDeleteForm::getFormId in core/
modules/ config_translation/ src/ Form/ ConfigTranslationDeleteForm.php - Returns a unique string identifying the form.
File
-
core/
lib/ Drupal/ Core/ Form/ FormInterface.php, line 22
Class
- FormInterface
- Provides an interface for a Form.
Namespace
Drupal\Core\FormCode
public function getFormId();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.