Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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 | |||
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 | |||
FormTestGroupContainerForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test the #group property on #type 'container'. | 1 | |||
FormTestGroupDetailsForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test the #group property on #type 'details'. | 1 | |||
FormTestGroupFieldsetForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test the #group property on #type 'fieldset'. | 1 | |||
FormTestGroupVerticalTabsForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test the #group property on #type 'vertical_tabs'. | 1 | |||
FormTestInputForgeryForm | class | Drupal\form_test\Form | core/ |
Form to test input forgery. | 1 | |||
FormTestLabelForm | class | Drupal\form_test\Form | core/ |
A form for testing form labels and required marks. | 1 | 1 | ||
FormTestLanguageSelectForm | class | Drupal\form_test\Form | core/ |
Builds a form to test the language select form element. | 1 | |||
FormTestLimitValidationErrorsForm | class | Drupal\form_test\Form | core/ |
Builds a simple form with a button triggering partial validation. | 1 | |||
FormTestMachineNameForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'machine_name' elements. | 1 | |||
FormTestMachineNameValidationForm | class | Drupal\form_test\Form | core/ |
Form to test whether machine name validation works with ajax requests. | 1 | |||
FormTestMiddleware | class | Drupal\form_test\StackMiddleware | core/ |
Provides a test middleware which sets a custom response header. | 2 | |||
FormTestNumberForm | class | Drupal\form_test\Form | core/ |
Builds a form to test #type 'number' and 'range' validation. | 1 | |||
FormTestObject | class | Drupal\form_test | core/ |
Provides a test form object. | 1 | 1 | ||
FormTestOptionalContainerForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test the #optional property on #type 'container'. | 1 | |||
FormTestPatternForm | class | Drupal\form_test\Form | core/ |
Builds a simple form using the FAPI #pattern property. | 1 | |||
FormTestPlaceholderForm | class | Drupal\form_test\Form | core/ |
Builds a form to test the placeholder attribute. | 1 | |||
FormTestProgrammaticForm | class | Drupal\form_test\Form | core/ |
Form builder to test programmatic form submissions. | ||||
FormTestRadiosCheckedForm | class | Drupal\form_test\Form | core/ |
Form constructor to test #default_value settings of radios. | 1 | |||
FormTestRangeForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'range' elements. | 1 | |||
FormTestRangeInvalidForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing invalid #type 'range' elements. | 1 | |||
FormTestRebuildPreserveValuesForm | class | Drupal\form_test\Form | core/ |
Form builder for testing preservation of values during a rebuild. | 1 | |||
FormTestRedirectForm | class | Drupal\form_test\Form | core/ |
Form builder to detect form redirect. | 1 | |||
FormTestRequiredAttributeForm | class | Drupal\form_test\Form | core/ |
Builds a form to test the required attribute. | 1 | |||
FormTestResponseForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'url' elements. | 1 | |||
FormTestSelectForm | class | Drupal\form_test\Form | core/ |
Builds a form to test #type 'select' validation. | 1 | |||
FormTestServiceObject | class | Drupal\form_test | core/ |
Provides a test form object. | 2 | |||
FormTestStatePersistForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing form state persistence. | 1 | |||
FormTestStorageForm | class | Drupal\form_test\Form | core/ |
A multistep form for testing the form storage. | 1 |
Pagination
- Previous page
- Page 78
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.