Search for forms

  1. Search 7.x for forms
  2. Search 9.5.x for forms
  3. Search 8.9.x for forms
  4. Search 10.3.x for forms
  5. Other projects
Title Object type File name Summary
ConfigTargetTest::testFromFormString function core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php @covers ::fromForm[[api-linebreak]]
@covers ::fromString[[api-linebreak]]
ConfigTranslationListUiTest::doContactFormsListTest function core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php Tests the contact forms listing for the translate operation.
ContactSitewideTest::deleteContactForms function core/modules/contact/tests/src/Functional/ContactSitewideTest.php Deletes all forms.
ContentTranslationHandler::entityFormSharedElements function core/modules/content_translation/src/ContentTranslationHandler.php Process callback: determines which elements get clue in the form.
ContentTranslationHandler::entityFormSourceChange function core/modules/content_translation/src/ContentTranslationHandler.php Form submission handler for ContentTranslationHandler::entityFormAlter().
ContentTranslationHandler::entityFormSubmit function core/modules/content_translation/src/ContentTranslationHandler.php Form submission handler for ContentTranslationHandler::entityFormAlter().
ContentTranslationHandlerTest::providerTestEntityFormSharedElements function core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php Returns test cases for ::testEntityFormSharedElements().
ContentTranslationHandlerTest::testEntityFormSharedElements function core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php Tests ContentTranslationHandler::entityFormSharedElements()
ContentTranslationTestHooks::formNodeFormSubmit function core/modules/content_translation/tests/modules/content_translation_test/src/Hook/ContentTranslationTestHooks.php Form submission handler for custom field added based on a request parameter.
ContentTranslationUITestBase::getFormSubmitAction function core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php Returns the form action value to be used to submit the entity form.
ContentTranslationUITestBase::getFormSubmitActionForNewTranslation function core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php Returns the form action value when submitting a new translation.
ContentTranslationUITestBase::getFormSubmitSuffix function core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php Returns appropriate submit button suffix based on translatability.
DateRangeFieldItemList::defaultValuesFormSubmit function core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeFieldItemList.php Processes the submitted default value.
DateTimeFieldItemList::defaultValuesFormSubmit function core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php Processes the submitted default value.
DatetimeFormElementTest::testNoErrorMetOnFormSubmit function core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php Checks we have no errors on form submit.
DblogHooks::formSystemLoggingSettingsAlter function core/modules/dblog/src/Hook/DblogHooks.php Implements hook_form_FORM_ID_alter() for system_logging_settings().
Display::getFormState function core/modules/views_ui/src/Form/Ajax/Display.php @todo Remove this and switch all usage of $form_state->get('section') to
$form_state->get('type').
ElementsLabelsTest::testFormsInThemeLessEnvironments function core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php Tests forms in theme-less environments.
ElementsTableSelectTest::formSubmitHelper function core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php Helper function for the option check test to submit a form while collecting errors.
EntityReferenceFieldItemList::defaultValuesFormSubmit function core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php Processes the submitted default value.
ExposedFormPluginBase::exposedFormSubmit function core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php Submits the exposed form.
ExposedFormPluginInterface::exposedFormSubmit function core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php Submits the exposed form.
FieldFormButtonTest::viewsFormSubmit function core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php Submit handler for the views form.
FieldItemList::defaultValuesFormSubmit function core/lib/Drupal/Core/Field/FieldItemList.php Processes the submitted default value.
FieldItemListInterface::defaultValuesFormSubmit function core/lib/Drupal/Core/Field/FieldItemListInterface.php Processes the submitted default value.
FieldItemListTest::testDefaultValuesFormSubmit function core/tests/Drupal/Tests/Core/Field/FieldItemListTest.php @covers ::defaultValuesFormSubmit[[api-linebreak]]
FieldLayoutTest::testLayoutForms function core/modules/field_layout/tests/src/FunctionalJavascript/FieldLayoutTest.php Tests layout plugins with forms.
FileFormHooks::formSystemFileSystemSettingsAlter function core/modules/file/src/Hook/FileFormHooks.php Implements hook_form_FORM_ID_alter().
FormAjaxException::$formState property core/lib/Drupal/Core/Form/FormAjaxException.php The form state.
FormAjaxException::getFormState function core/lib/Drupal/Core/Form/FormAjaxException.php Gets the form state.
FormBuilder::$formSubmitter property core/lib/Drupal/Core/Form/FormBuilder.php The form submitter.
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::testHandleFormStateResponse function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the handling of FormStateInterface::$response.
FormCache::loadCachedFormState function core/lib/Drupal/Core/Form/FormCache.php Loads the cached form state.
FormCacheTest::$formState property core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php
FormCacheTest::$formStateCacheStore property core/tests/Drupal/Tests/Core/Form/FormCacheTest.php The expirable key value store used by form state cache.
FormCacheTest::testLoadCachedFormState function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::loadCachedFormState[[api-linebreak]]
FormCacheTest::testLoadCachedFormStateWithFiles function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::loadCachedFormState[[api-linebreak]]
FormErrorHandler::setElementErrorsFromFormState function core/lib/Drupal/Core/Form/FormErrorHandler.php Stores errors and a list of child element errors directly on each element.
FormErrorHandlerTest::testSetElementErrorsFromFormState function core/tests/Drupal/Tests/Core/Form/FormErrorHandlerTest.php @covers ::handleFormErrors[[api-linebreak]]
@covers ::setElementErrorsFromFormState[[api-linebreak]]
FormState class core/lib/Drupal/Core/Form/FormState.php Stores information about the state of a form.
FormState.php file core/lib/Drupal/Core/Form/FormState.php
FormState::$always_process property core/lib/Drupal/Core/Form/FormState.php If TRUE and the method is GET, a form_id is not necessary.
FormState::$anyErrors property core/lib/Drupal/Core/Form/FormState.php Tracks if any errors have been set on any form.
FormState::$build_info property core/lib/Drupal/Core/Form/FormState.php An associative array of information stored by Form API.
FormState::$buttons property core/lib/Drupal/Core/Form/FormState.php A list containing copies of all submit and button elements in the form.
FormState::$cache property core/lib/Drupal/Core/Form/FormState.php Determines if the unprocessed form structure is cached.
FormState::$cleanValueKeys property core/lib/Drupal/Core/Form/FormState.php An associative array of form value keys to be removed by cleanValues().
FormState::$complete_form property core/lib/Drupal/Core/Form/FormState.php The complete form structure.

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