| FormBuilder::handleInputElement |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Adds the #name and #value properties of an input element before rendering. |
| FormBuilder::isElementAccessible |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Determines if the element is accessible based on the #access property. |
| FormBuilder::prepareForm |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Prepares a structured form array. |
| FormBuilder::processForm |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Processes a form submission. |
| FormBuilder::rebuildForm |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Constructs a new $form from the information in $form_state. |
| FormBuilder::redirectForm |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Redirects the user to a URL after a form has been processed. |
| FormBuilder::renderFormTokenPlaceholder |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Renders the form CSRF token. It's a #lazy_builder callback. |
| FormBuilder::renderPlaceholderFormAction |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Renders a form action URL. It's a #lazy_builder callback. |
| FormBuilder::retrieveForm |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Retrieves the structured array that defines a given form. |
| FormBuilder::setCache |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Stores a form in the cache. |
| FormBuilder::setInvalidTokenError |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Sets a form_token error on the given form state. |
| FormBuilder::submitForm |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Retrieves, populates, and processes a form. |
| FormBuilder::trustedCallbacks |
function |
core/lib/Drupal/Core/Form/FormBuilder.php |
Lists the trusted callbacks provided by the implementing class. |
| 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. |