| FormBuilder::validateForm |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Validates user-submitted form data in the $form_state. |
| FormBuilder::valueCallableIsSafe |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Helper function to normalize the different callable formats. |
| FormBuilder::__construct |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
|
| FormBuilderInterface |
interface |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Provides an interface for form building and processing. |
| FormBuilderInterface.php |
file |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
|
| FormBuilderInterface::AJAX_FORM_REQUEST |
constant |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Request key for AJAX forms that submit to the form's original route. |
| FormBuilderInterface::buildForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Builds and processes a form for a given form ID. |
| FormBuilderInterface::doBuildForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Builds and processes all elements in the structured form array. |
| FormBuilderInterface::getForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Gets a renderable form array. |
| FormBuilderInterface::getFormId |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Determines the ID of a form. |
| FormBuilderInterface::HTMX_REQUEST |
constant |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Header name for HTMX requests. |
| FormBuilderInterface::prepareForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Prepares a structured form array. |
| FormBuilderInterface::processForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Processes a form submission. |
| FormBuilderInterface::rebuildForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Constructs a new $form from the information in $form_state. |
| FormBuilderInterface::retrieveForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Retrieves the structured array that defines a given form. |
| FormBuilderInterface::submitForm |
function |
core/lib/Drupal/Core/Form/FormBuilderInterface.php |
Retrieves, populates, and processes a form. |
| FormBuilderTest |
class |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests Drupal\Core\Form\FormBuilder. |
| FormBuilderTest.php |
file |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
|
| FormBuilderTest::$container |
property |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
The dependency injection container. |
| FormBuilderTest::buildTestFormStructure |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Returns a test form array for use in form builder tests. |
| FormBuilderTest::formStateResponseProvider |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Provides test data for testHandleFormStateResponse(). |
| FormBuilderTest::providerTestBuildFormWithTriggeringElement |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Data provider for ::testBuildFormWithTriggeringElement(). |
| FormBuilderTest::providerTestChildAccessInheritance |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Data provider for testChildAccessInheritance. |
| FormBuilderTest::providerTestFormTokenCacheability |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Data provider for testFormTokenCacheability. |
| FormBuilderTest::providerTestInvalidToken |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
|
| FormBuilderTest::providerTestValueCallableIsSafe |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
|
| FormBuilderTest::setUp |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
|
| FormBuilderTest::testBuildFormWithClassString |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the buildForm() method with a class name based form ID. |
| FormBuilderTest::testBuildFormWithObject |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the buildForm() method with a form object. |
| FormBuilderTest::testBuildFormWithString |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the buildForm() method with a string based form ID. |
| FormBuilderTest::testBuildFormWithTriggeringElement |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests whether the triggering element is properly identified. |
| FormBuilderTest::testChildAccessInheritance |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests child access inheritance. |
| FormBuilderTest::testExceededFileSize |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests exceeded file size. |
| FormBuilderTest::testFormCacheDeletionCached |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests that a cached form is deleted after submit. |
| FormBuilderTest::testFormCacheDeletionUncached |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests that an uncached form does not trigger cache set or delete. |
| FormBuilderTest::testFormTokenCacheability |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests form token cacheability. |
| FormBuilderTest::testGetAjaxRequest |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests get ajax request. |
| FormBuilderTest::testGetCache |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getCache() method. |
| FormBuilderTest::testGetFormIdWithBaseForm |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getFormId() method with a base form object. |
| FormBuilderTest::testGetFormIdWithClassName |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getFormId() method with a class name form ID. |
| FormBuilderTest::testGetFormIdWithInjectedClassName |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getFormId() method with an injected class name form ID. |
| FormBuilderTest::testGetFormIdWithNonFormClass |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests get form id with non form class. |
| FormBuilderTest::testGetFormIdWithObject |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getFormId() method with a form object. |
| FormBuilderTest::testGetFormIdWithString |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getFormId() method with a string based form ID. |
| FormBuilderTest::testGetFormWithClassString |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getForm() method with a class name based form ID. |
| FormBuilderTest::testGetFormWithObject |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getForm() method with a form object. |
| FormBuilderTest::testGetFormWithString |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the getForm() method with a string based form ID. |
| FormBuilderTest::testHandleFormStateResponse |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the handling of FormStateInterface::$response. |
| FormBuilderTest::testHandleRedirectWithResponse |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests the handling of a redirect when FormStateInterface::$response exists. |
| FormBuilderTest::testInvalidToken |
function |
core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php |
Tests invalid token. |