namespace Drupal\Core\Form

Same name in other branches
  1. 9 Drupal\Core\Form
  2. 8.9.x Drupal\Core\Form
  3. 11.x Drupal\Core\Form
Object name File name Summary
BaseFormIdInterface core/lib/Drupal/Core/Form/BaseFormIdInterface.php Provides an interface for a Form that has a base form ID.
ConfigFormBase core/lib/Drupal/Core/Form/ConfigFormBase.php Base class for implementing system configuration forms.
ConfigFormBaseTrait core/lib/Drupal/Core/Form/ConfigFormBaseTrait.php Provides access to configuration for forms.
ConfigTarget core/lib/Drupal/Core/Form/ConfigTarget.php Represents the mapping of a config property to a form element.
ConfirmFormBase core/lib/Drupal/Core/Form/ConfirmFormBase.php Provides a generic base class for a confirmation form.
ConfirmFormHelper core/lib/Drupal/Core/Form/ConfirmFormHelper.php Provides common functionality to confirmation forms.
ConfirmFormInterface core/lib/Drupal/Core/Form/ConfirmFormInterface.php Defines the behavior a confirmation form.
EnforcedResponse core/lib/Drupal/Core/Form/EnforcedResponse.php A wrapper containing a response which is to be enforced upon delivery.
EnforcedResponseException core/lib/Drupal/Core/Form/EnforcedResponseException.php Custom exception to break out of the main request and enforce a response.
FormAjaxException core/lib/Drupal/Core/Form/FormAjaxException.php Custom exception to break out of AJAX form processing.
FormAjaxResponseBuilder core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php Builds an AJAX form response.
FormAjaxResponseBuilderInterface core/lib/Drupal/Core/Form/FormAjaxResponseBuilderInterface.php Provides an interface for building AJAX form responses.
FormBase core/lib/Drupal/Core/Form/FormBase.php Provides a base class for forms.
FormBuilder core/lib/Drupal/Core/Form/FormBuilder.php Provides form building and processing.
FormBuilderInterface core/lib/Drupal/Core/Form/FormBuilderInterface.php Provides an interface for form building and processing.
FormCache core/lib/Drupal/Core/Form/FormCache.php Encapsulates the caching of a form and its form state.
FormCacheInterface core/lib/Drupal/Core/Form/FormCacheInterface.php Provides an interface for the caching of a form and its form state.
FormElementHelper core/lib/Drupal/Core/Form/FormElementHelper.php Provides common functionality for form elements.
FormErrorHandler core/lib/Drupal/Core/Form/FormErrorHandler.php Handles form errors.
FormErrorHandlerInterface core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php Provides an interface for handling form errors.
FormHelper core/lib/Drupal/Core/Form/FormHelper.php Provides helpers to operate on forms.
FormInterface core/lib/Drupal/Core/Form/FormInterface.php Provides an interface for a Form.
FormState core/lib/Drupal/Core/Form/FormState.php Stores information about the state of a form.
FormStateDecoratorBase core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Decorates another form state.
FormStateInterface core/lib/Drupal/Core/Form/FormStateInterface.php Provides an interface for an object containing the current state of a form.
FormStateValuesTrait core/lib/Drupal/Core/Form/FormStateValuesTrait.php Provides methods to manage form state values.
FormSubmitter core/lib/Drupal/Core/Form/FormSubmitter.php Provides submission processing for forms.
FormSubmitterInterface core/lib/Drupal/Core/Form/FormSubmitterInterface.php Provides an interface for processing form submissions.
FormValidator core/lib/Drupal/Core/Form/FormValidator.php Provides validation of form submissions.
FormValidatorInterface core/lib/Drupal/Core/Form/FormValidatorInterface.php Provides an interface for validating form submissions.
OptGroup core/lib/Drupal/Core/Form/OptGroup.php Provides helpers for HTML option groups.
RedundantEditableConfigNamesTrait core/lib/Drupal/Core/Form/RedundantEditableConfigNamesTrait.php Implements ::getEditableConfigNames() for forms using #config_target.
SubformState core/lib/Drupal/Core/Form/SubformState.php Stores information about the state of a subform.
SubformStateInterface core/lib/Drupal/Core/Form/SubformStateInterface.php Stores information about the state of a subform.
WorkspaceDynamicSafeFormInterface core/lib/Drupal/Core/Form/WorkspaceDynamicSafeFormInterface.php Defines an interface for forms that can be workspace-safe.
WorkspaceSafeFormInterface core/lib/Drupal/Core/Form/WorkspaceSafeFormInterface.php Defines an interface for forms that are safe to be submitted in a workspace.

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