Search for forms

  1. Search 7.x for forms
  2. Search 9.5.x for forms
  3. Search 10.3.x for forms
  4. Search 11.x for forms
  5. Other projects
Title Object type File name Summary
FormSubmitter::doSubmitForm function core/lib/Drupal/Core/Form/FormSubmitter.php Handles the submitted form, executing callbacks and processing responses.
FormSubmitter::drupalInstallationAttempted function core/lib/Drupal/Core/Form/FormSubmitter.php Wraps drupal_installation_attempted().
FormSubmitter::executeSubmitHandlers function core/lib/Drupal/Core/Form/FormSubmitter.php Executes custom submission handlers for a given form.
FormSubmitter::redirectForm function core/lib/Drupal/Core/Form/FormSubmitter.php Redirects the user to a URL after a form has been processed.
FormSubmitter::__construct function core/lib/Drupal/Core/Form/FormSubmitter.php Constructs a new FormValidator.
FormSubmitterInterface interface core/lib/Drupal/Core/Form/FormSubmitterInterface.php Provides an interface for processing form submissions.
FormSubmitterInterface.php file core/lib/Drupal/Core/Form/FormSubmitterInterface.php
FormSubmitterInterface::doSubmitForm function core/lib/Drupal/Core/Form/FormSubmitterInterface.php Handles the submitted form, executing callbacks and processing responses.
FormSubmitterInterface::executeSubmitHandlers function core/lib/Drupal/Core/Form/FormSubmitterInterface.php Executes custom submission handlers for a given form.
FormSubmitterInterface::redirectForm function core/lib/Drupal/Core/Form/FormSubmitterInterface.php Redirects the user to a URL after a form has been processed.
FormSubmitterTest class core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php @coversDefaultClass \Drupal\Core\Form\FormSubmitter
@group Form
FormSubmitterTest.php file core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
FormSubmitterTest::$unroutedUrlAssembler property core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php The mocked unrouted URL assembler.
FormSubmitterTest::$urlGenerator property core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php The mocked URL generator.
FormSubmitterTest::getFormSubmitter function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
FormSubmitterTest::providerTestHandleFormSubmissionWithResponses function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
FormSubmitterTest::providerTestRedirectWithUrl function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Provides test data for testing the redirectForm() method with a route name.
FormSubmitterTest::setUp function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
FormSubmitterTest::testExecuteSubmitHandlers function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php @covers ::executeSubmitHandlers
FormSubmitterTest::testHandleFormSubmissionNoRedirect function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php @covers ::doSubmitForm
FormSubmitterTest::testHandleFormSubmissionNotSubmitted function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php @covers ::doSubmitForm
FormSubmitterTest::testHandleFormSubmissionWithResponses function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php @covers ::doSubmitForm
FormSubmitterTest::testRedirectWithNull function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests the redirectForm() method when the redirect is NULL.
FormSubmitterTest::testRedirectWithoutResult function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests the redirectForm() method when no redirect is expected.
FormSubmitterTest::testRedirectWithResponseObject function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests the redirectForm() method with a response object.
FormSubmitterTest::testRedirectWithUrl function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests redirectForm() when a redirect is a Url object.
FormTest::testFieldFormSingle function core/modules/field/tests/src/Functional/FormTest.php
FormTest::testFieldFormSingleRequired function core/modules/field/tests/src/Functional/FormTest.php
FormTest::testGetFormsCsrfToken function core/modules/system/tests/src/Functional/Form/FormTest.php CSRF tokens for GET forms should not be added by default.
FormTestBase::$formSubmitter property core/tests/Drupal/Tests/Core/Form/FormTestBase.php
FormTestBase::simulateFormSubmission function core/tests/Drupal/Tests/Core/Form/FormTestBase.php Simulates a form submission within a request, bypassing submitForm().
FormTestFormStateValuesCleanAdvancedForm class core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanAdvancedForm.php Form builder for \Drupal\Core\Form\FormState::cleanValues() test.
FormTestFormStateValuesCleanAdvancedForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanAdvancedForm.php
FormTestFormStateValuesCleanAdvancedForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanAdvancedForm.php Form constructor.
FormTestFormStateValuesCleanAdvancedForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanAdvancedForm.php Returns a unique string identifying the form.
FormTestFormStateValuesCleanAdvancedForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanAdvancedForm.php Form submission handler.
FormTestFormStateValuesCleanForm class core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php Form builder for \Drupal\Core\Form\FormState::cleanValues() test.
FormTestFormStateValuesCleanForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php
FormTestFormStateValuesCleanForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php Form constructor.
FormTestFormStateValuesCleanForm::cleanValue function core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php Helper function to clean a value on an element.
FormTestFormStateValuesCleanForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php Returns a unique string identifying the form.
FormTestFormStateValuesCleanForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php Form submission handler.
FormTestMachineNameValidationForm::buildAjaxSnackConfigureFormSubmit function core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameValidationForm.php Submit callback that forces a form rebuild.
GetTest::testTransformSourceArray function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is an array.
GetTest::testTransformSourceArrayAt function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is an array pointing to destination.
GetTest::testTransformSourceString function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is a string.
GetTest::testTransformSourceStringAt function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is a string pointing to destination.
LayoutBuilderDisableInteractionsTest::testFormsLinksDisabled function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php Tests that forms and links are disabled in the Layout Builder preview.
LegacyBlockVisibilityTest::testTransformSinglePageWithFront function core/modules/block/tests/src/Unit/Plugin/migrate/process/LegacyBlockVisibilityTest.php Tests Transform.
MediaLibraryAddFormTest::testFormStateValidation function core/modules/media_library/tests/src/Kernel/MediaLibraryAddFormTest.php Tests the validation of the library state in the media library add form.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.