Classes, traits, and interfaces - 10.3.x - drupal
Introduction to classes
A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.
See also
Objected-oriented programming conventions
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
FormErrorHandlerInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for handling form errors. | 1 | |||
FormErrorHandlerTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormErrorHandler[[api-linebreak]] @group Form | ||||
FormErrorHandlerTest | class | Drupal\Tests\inline_form_errors\Unit | core/ |
@coversDefaultClass \Drupal\inline_form_errors\FormErrorHandler[[api-linebreak]] @group InlineFormErrors | ||||
FormGroupingElementsTest | class | Drupal\FunctionalJavascriptTests\Core\Form | core/ |
Tests for form grouping elements. | ||||
FormHelper | class | Drupal\Core\Form | core/ |
Provides helpers to operate on forms. | 6 | |||
FormHelperTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormHelper[[api-linebreak]] @group Form | ||||
FormInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for a Form. | 39 | 41 | ||
FormModeAccessCheck | class | Drupal\field_ui\Access | core/ |
Defines an access check for entity form mode routes. | 2 | |||
FormObjectTest | class | Drupal\Tests\system\Kernel\Form | core/ |
Tests building a form from an object. | ||||
FormObjectTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests building a form from an object. | ||||
FormOperations | class | Drupal\workspaces | core/ |
Defines a class for reacting to form operations. | 1 | |||
FormRouteEnhancer | class | Drupal\Core\Routing\Enhancer | core/ |
Enhancer to add a wrapping controller for _form routes. | 2 | |||
FormState | class | Drupal\Core\Form | core/ |
Stores information about the state of a form. | 82 | |||
FormStateDecoratorBase | abstract class | Drupal\Core\Form | core/ |
Decorates another form state. | 2 | 1 | ||
FormStateDecoratorBaseTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase[[api-linebreak]] | ||||
FormStateInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for an object containing the current state of a form. | 3 | 897 | ||
FormStateTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormState[[api-linebreak]] | ||||
FormStateValuesTrait | trait | Drupal\Core\Form | core/ |
Provides methods to manage form state values. | 1 | |||
FormStateValuesTraitStub | class | Drupal\Tests\Core\Form | core/ |
|||||
FormStateValuesTraitTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormStateValuesTrait[[api-linebreak]] | ||||
FormStoragePageCacheTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests form storage from cached pages. | ||||
FormSubmitter | class | Drupal\Core\Form | core/ |
Provides submission processing for forms. | 2 | |||
FormSubmitterInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for processing form submissions. | 2 | |||
FormSubmitterTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormSubmitter[[api-linebreak]] @group Form | ||||
FormTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests various form element validation mechanisms. | ||||
FormTest | class | Drupal\Tests\field\Functional | core/ |
Tests field form handling. | ||||
FormTestAlterForm | class | Drupal\form_test\Form | core/ |
Form builder for testing hook_form_alter() and hook_form_FORM_ID_alter(). | 1 | |||
FormTestArgumentsObject | class | Drupal\form_test | core/ |
Provides a test form object that needs arguments. | 1 | |||
FormTestAutocompleteForm | class | Drupal\form_test | core/ |
Defines a test form using autocomplete textfields. | 1 | |||
FormTestBase | abstract class | Drupal\Tests\Core\Form | core/ |
Provides a base class for testing form functionality. | 1 | |||
FormTestButtonClassForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test form button classes. | 1 | |||
FormTestCheckboxesRadiosForm | class | Drupal\form_test\Form | core/ |
Form constructor to test expansion of #type checkboxes and radios. | 1 | |||
FormTestCheckboxesZeroForm | class | Drupal\form_test\Form | core/ |
Tests checkboxes zero. | 1 | |||
FormTestCheckboxForm | class | Drupal\form_test\Form | core/ |
Form for testing checkbox. | 1 | |||
FormTestCheckboxTypeJugglingForm | class | Drupal\form_test\Form | core/ |
Builds a form to test return values for checkboxes. | ||||
FormTestClickedButtonForm | class | Drupal\form_test\Form | core/ |
Form builder to test button click detection. | 1 | |||
FormTestColorForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'color' elements. | 1 | |||
FormTestController | class | Drupal\form_test\Controller | core/ |
Controller routines for form_test routes. | ||||
FormTestControllerObject | class | Drupal\form_test | core/ |
Provides a test form object. | 1 | |||
FormTestDescriptionForm | class | Drupal\form_test\Form | core/ |
Defines a form for testing form element description display options. | 1 | |||
FormTestDetailsContainsRequiredTextfieldForm | class | Drupal\form_test\Form | core/ |
Builds a form to test a required textfield within a details element. | 1 | |||
FormTestDetailsForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test the #group property on #type 'container'. | 1 | |||
FormTestDisabledElementsForm | class | Drupal\form_test\Form | core/ |
Builds a form to test disabled elements. | 1 | 1 | ||
FormTestEmailForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'email' elements. | 1 | |||
FormTestEmptySelectForm | class | Drupal\form_test\Form | core/ |
Builds a form to test select elements when #options is not an array. | 1 | |||
FormTestEventSubscriber | class | Drupal\form_test\EventSubscriber | core/ |
Test event subscriber to add new attributes to the request. | 2 | |||
FormTestFileForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'file' elements. | 1 | |||
FormTestFormStateValuesCleanAdvancedForm | class | Drupal\form_test\Form | core/ |
Form builder for \Drupal\Core\Form\FormState::cleanValues() test. | 1 | |||
FormTestFormStateValuesCleanForm | class | Drupal\form_test\Form | core/ |
Form builder for \Drupal\Core\Form\FormState::cleanValues() test. | 1 | |||
FormTestGetForm | class | Drupal\form_test\Form | core/ |
Form to test whether GET forms have a CSRF token. | 1 |
Pagination
- Previous page
- Page 81
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.