43 calls to Drupal::formBuilder() in Drupal 10
- ActionListBuilder::render in core/
modules/ action/ src/ ActionListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
- ActionsTest::testDropbuttonWithBubbleableMetadata in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ ActionsTest.php - authorize.php in core/
authorize.php - Administrative script for running authorized file operations.
- CheckboxTest::testFormCheckbox in core/
modules/ system/ tests/ src/ Functional/ Form/ CheckboxTest.php - ConfigFormTestBase::testConfigForm in core/
tests/ Drupal/ KernelTests/ ConfigFormTestBase.php - Submit the system_config_form ensure the configuration has expected values.
- DatelistElementFormTest::testDatelistElement in core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ DatelistElementFormTest.php - Tests that trusted callbacks are executed.
- DatelistElementFormTest::testDatelistElementUntrustedCallbacks in core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ DatelistElementFormTest.php - Tests that exceptions are raised if untrusted callbacks are used.
- DatetimeElementFormTest::testDatetimeElement in core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ DatetimeElementFormTest.php - Tests that default handlers are added even if custom are specified.
- DatetimeElementFormTest::testDatetimeElementUntrustedCallbacks in core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ DatetimeElementFormTest.php - Tests that deprecations are raised if untrusted callbacks are used.
- DatetimeElementFormTest::testTimezoneHandling in core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ DatetimeElementFormTest.php - Tests proper timezone handling of the Datetime element.
- DraggableListBuilder::formBuilder in core/
lib/ Drupal/ Core/ Config/ Entity/ DraggableListBuilder.php - Returns the form builder.
- DrupalTest::testFormBuilder in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the formBuilder() method.
- ElementsFieldsetTest::testFieldsetDescriptions in core/
modules/ system/ tests/ src/ Kernel/ Form/ ElementsFieldsetTest.php - Tests different display options for fieldset element descriptions.
- ElementsTableSelectTest::formSubmitHelper in core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsTableSelectTest.php - Helper function for the option check test to submit a form while collecting errors.
- ExposedFormPluginBase::renderExposedForm in core/
modules/ views/ src/ Plugin/ views/ exposed_form/ ExposedFormPluginBase.php - Renders the exposed form.
- ExternalFormUrlTest::testActionUrlBehavior in core/
tests/ Drupal/ KernelTests/ Core/ Form/ ExternalFormUrlTest.php - Tests form behavior.
- FieldAttachOtherTest::testEntityFormDisplayExtractFormValues in core/
modules/ field/ tests/ src/ Kernel/ FieldAttachOtherTest.php - Tests \Drupal\Core\Entity\Display\EntityFormDisplayInterface::extractFormValues().
- FieldWidgetConstraintValidatorTest::getErrorsForEntity in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldWidgetConstraintValidatorTest.php - Gets the form errors for a given entity.
- FieldWidgetConstraintValidatorTest::testValidation in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldWidgetConstraintValidatorTest.php - Tests widget constraint validation.
- FormActionXssTest::testFormActionXss in core/
tests/ Drupal/ KernelTests/ Core/ Form/ FormActionXssTest.php - Tests form action attribute for XSS.
- FormCacheTest::testCacheCustomExpiration in core/
tests/ Drupal/ KernelTests/ Core/ Form/ FormCacheTest.php - Tests the form cache with an overridden cache expiration.
- FormCacheTest::testCacheToken in core/
tests/ Drupal/ KernelTests/ Core/ Form/ FormCacheTest.php - Tests the form cache with a logged-in user.
- FormCacheTest::testNoCacheToken in core/
tests/ Drupal/ KernelTests/ Core/ Form/ FormCacheTest.php - Tests the form cache without a logged-in user.
- FormElementInlineErrorTest::testDisplayErrorMessagesNotInline in core/
modules/ inline_form_errors/ tests/ src/ Kernel/ FormElementInlineErrorTest.php - Tests that no inline form errors are shown when disabled for a form.
- FormTest::testDisabledMarkup in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Verify markup for disabled form elements.
- FormTest::testNumber in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests validation of #type 'number' and 'range' elements.
- FormTest::testRequiredCheckboxesRadio in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests validation for required checkbox, select, and radio elements.
- FormTest::testRequiredFields in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Check several empty values for required forms elements.
- FormTest::testSelect in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests validation of #type 'select' elements.
- install_get_form in core/
includes/ install.core.inc - Builds and processes a form for the installer environment.
- MachineNameTest::testMachineNameOrderException in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ MachineNameTest.php - Tests the order of the machine name field and the source.
- MediaLibraryAddFormTest::testFormStateValidation in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAddFormTest.php - Tests the validation of the library state in the media library add form.
- MediaLibraryAddFormTest::testSelectedTypeValidation in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAddFormTest.php - Tests the validation of the selected type in the media library add form.
- MediaSourceTest::createMediaTypeViaForm in core/
modules/ media/ tests/ src/ Kernel/ MediaSourceTest.php - Creates a media type via form submit.
- node_page_top in core/
modules/ node/ node.module - Implements hook_page_top().
- ProgrammaticTest::doSubmitForm in core/
modules/ system/ tests/ src/ Kernel/ Form/ ProgrammaticTest.php - Helper function used to programmatically submit the form defined in form_test.module with the given values.
- ProgrammaticTest::testProgrammaticAccessBypass in core/
modules/ system/ tests/ src/ Kernel/ Form/ ProgrammaticTest.php - Tests the programmed_bypass_access_check flag.
- search_embedded_form_preprocess_search_result in core/
modules/ search/ tests/ modules/ search_embedded_form/ search_embedded_form.module - Adds the test form to search results.
- TableTest::testThemeTableTitle in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ TableTest.php - Tests that the select/checkbox label is being generated and escaped.
- UserLoginBlock::build in core/
modules/ user/ src/ Plugin/ Block/ UserLoginBlock.php - ValidationTest::testCustomRequiredError in core/
modules/ system/ tests/ src/ Functional/ Form/ ValidationTest.php - Tests #required with custom validation errors.
- ViewsFormBase::ajaxFormWrapper in core/
modules/ views_ui/ src/ Form/ Ajax/ ViewsFormBase.php - Wrapper for handling AJAX forms.
- _batch_test_nested_drupal_form_submit_callback in core/
modules/ system/ tests/ modules/ batch_test/ batch_test.module - Batch operation: Submits form_test_mock_form().