Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::getFormId()
  2. 9 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.

1 call to FormInterface::getFormId()
ViewsFormBase::getFormState in core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
Gets the form state for this form.
219 methods override FormInterface::getFormId()
ActionAdminManageForm::getFormId in core/modules/action/src/Form/ActionAdminManageForm.php
Returns a unique string identifying the form.
ActionsTest::getFormId in core/tests/Drupal/KernelTests/Core/Render/Element/ActionsTest.php
Returns a unique string identifying the form.
AddBlockForm::getFormId in core/modules/layout_builder/src/Form/AddBlockForm.php
Returns a unique string identifying the form.
AddHandler::getFormId in core/modules/views_ui/src/Form/Ajax/AddHandler.php
Returns a unique string identifying the form.
AjaxFormsTestAjaxElementsForm::getFormId in core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestAjaxElementsForm.php
Returns a unique string identifying the form.

... See full list

File

core/lib/Drupal/Core/Form/FormInterface.php, line 22

Class

FormInterface
Provides an interface for a Form.

Namespace

Drupal\Core\Form

Code

public function getFormId();