You are here

public function TestForm::getFormId in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestForm::getFormId()
  2. 8 core/modules/page_cache/tests/modules/src/Form/TestForm.php \Drupal\page_cache_form_test\Form\TestForm::getFormId()
  3. 8 core/modules/block/tests/modules/block_test/src/Form/TestForm.php \Drupal\block_test\Form\TestForm::getFormId()
  4. 8 core/modules/system/tests/modules/test_page_test/src/Form/TestForm.php \Drupal\test_page_test\Form\TestForm::getFormId()
Same name and namespace in other branches
  1. 9 core/modules/block/tests/modules/block_test/src/Form/TestForm.php \Drupal\block_test\Form\TestForm::getFormId()
  2. 10 core/modules/block/tests/modules/block_test/src/Form/TestForm.php \Drupal\block_test\Form\TestForm::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/block/tests/modules/block_test/src/Form/TestForm.php, line 18

Class

TestForm
Form that performs base block form test.

Namespace

Drupal\block_test\Form

Code

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