You are here

public function FileTestForm::getFormId in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/file/tests/file_test/src/Form/FileTestForm.php \Drupal\file_test\Form\FileTestForm::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.

Overrides FormInterface::getFormId

File

core/modules/file/tests/file_test/src/Form/FileTestForm.php, line 17

Class

FileTestForm
File test form class.

Namespace

Drupal\file_test\Form

Code

public function getFormId() {
  return '_file_test_form';
}