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 |
---|---|---|---|---|---|---|---|---|
FormTestStoragePageCacheForm | class | Drupal\form_test\Form | core/ |
Form to test page cache storage. | 1 | |||
FormTestTableForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'table' elements. | ||||
FormTestTableSelectColspanForm | class | Drupal\form_test\Form | core/ |
Builds a form to test table selects with different column spans. | 1 | |||
FormTestTableSelectDisabledRowsForm | class | Drupal\form_test\Form | core/ |
Builds a form to test table select with disabled rows. | 1 | |||
FormTestTableSelectEmptyForm | class | Drupal\form_test\Form | core/ |
Builds a form to test table select with '#options' set to empty. | 1 | |||
FormTestTableSelectFormBase | abstract class | Drupal\form_test\Form | core/ |
Provides a base class for tableselect forms. | 7 | |||
FormTestTableSelectJsSelectForm | class | Drupal\form_test\Form | core/ |
Builds a form to test table select with JS. | 1 | |||
FormTestTableSelectMultipleFalseForm | class | Drupal\form_test\Form | core/ |
Builds a form to test table select with '#multiple" set to FALSE. | 1 | |||
FormTestTableSelectMultipleTrueForm | class | Drupal\form_test\Form | core/ |
Builds a form to test table select with '#multiple' as TRUE. | 1 | |||
FormTestUrlForm | class | Drupal\form_test\Form | core/ |
Form constructor for testing #type 'url' elements. | 1 | |||
FormTestValidateForm | class | Drupal\form_test\Form | core/ |
Form builder for testing \Drupal\Core\Form\FormValidatorInterface::validateForm(). | 1 | |||
FormTestValidateNoToken | class | Drupal\form_test\Form | core/ |
Form to test the validation of forms with a disabled CSRF token. | 1 | |||
FormTestValidateRequiredForm | class | Drupal\form_test\Form | core/ |
Form constructor to test the #required property. | 1 | |||
FormTestValidateRequiredNoTitleForm | class | Drupal\form_test\Form | core/ |
Form constructor to test the #required property without #title. | 1 | |||
FormTestVerticalTabsAccessForm | class | Drupal\form_test\Form | core/ |
Builds a form to test vertical tabs access. | 1 | |||
FormTestVerticalTabsForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test vertical tabs. | 1 | |||
Formula | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for simple formulae. | 1 | |||
FormUploadedFile | class | Drupal\file\Upload | core/ |
Provides a bridge to Symfony UploadedFile. | 1 | |||
FormValidationMessageOrderTest | class | Drupal\KernelTests\Core\Form | core/ |
Tests form validation messages are displayed in the same order as the fields. | ||||
FormValidator | class | Drupal\Core\Form | core/ |
Provides validation of form submissions. | 2 | 2 | ||
FormValidatorInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for validating form submissions. | 2 | |||
FormValidatorTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormValidator @group Form | ||||
FormValuesTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests that form values are properly delivered to AJAX callbacks. | ||||
ForumBlockBase | abstract class | Drupal\forum\Plugin\Block | core/ |
Provides a base class for Forum blocks. | 2 | |||
ForumBlockTest | class | Drupal\Tests\forum\Functional | core/ |
Tests the forum blocks. | ||||
ForumBreadcrumbBuilderBase | abstract class | Drupal\forum\Breadcrumb | core/ |
Provides a forum breadcrumb base class. | 2 | |||
ForumBreadcrumbBuilderBaseTest | class | Drupal\Tests\forum\Unit\Breadcrumb | core/ |
@coversDefaultClass \Drupal\forum\Breadcrumb\ForumBreadcrumbBuilderBase @group forum | ||||
ForumController | class | Drupal\forum\Controller | core/ |
Controller routines for forum routes. | ||||
ForumForm | class | Drupal\forum\Form | core/ |
Base form for forum term edit forms. | 1 | |||
ForumIndexStorage | class | Drupal\forum | core/ |
Handles CRUD operations to {forum_index} table. | 2 | |||
ForumIndexStorageInterface | interface | Drupal\forum | core/ |
Handles CRUD operations to {forum_index} table. | 1 | |||
ForumIndexTest | class | Drupal\Tests\forum\Functional | core/ |
Tests the forum index listing. | ||||
ForumIntegrationTest | class | Drupal\Tests\forum\Functional\Views | core/ |
Tests the forum integration into views. | ||||
ForumLeafConstraint | class | Drupal\forum\Plugin\Validation\Constraint | core/ |
Checks that the node is assigned only a "leaf" term in the forum taxonomy. | ||||
ForumLeafConstraintValidator | class | Drupal\forum\Plugin\Validation\Constraint | core/ |
Validates the ForumLeaf constraint. | ||||
ForumListingBreadcrumbBuilder | class | Drupal\forum\Breadcrumb | core/ |
Provides a breadcrumb builder base class for forum listing pages. | 1 | 2 | ||
ForumListingBreadcrumbBuilderTest | class | Drupal\Tests\forum\Unit\Breadcrumb | core/ |
@coversDefaultClass \Drupal\forum\Breadcrumb\ForumListingBreadcrumbBuilder @group forum | ||||
ForumManager | class | Drupal\forum | core/ |
Provides forum manager service. | 2 | |||
ForumManagerInterface | interface | Drupal\forum | core/ |
Provides forum manager interface. | 1 | 2 | ||
ForumManagerTest | class | Drupal\Tests\forum\Unit | core/ |
@coversDefaultClass \Drupal\forum\ForumManager @group forum | ||||
ForumNodeAccessTest | class | Drupal\Tests\forum\Functional | core/ |
Tests forum block view for private node access. | ||||
ForumNodeBreadcrumbBuilder | class | Drupal\forum\Breadcrumb | core/ |
Breadcrumb builder for forum nodes. | 1 | 2 | ||
ForumNodeBreadcrumbBuilderTest | class | Drupal\Tests\forum\Unit\Breadcrumb | core/ |
@coversDefaultClass \Drupal\forum\Breadcrumb\ForumNodeBreadcrumbBuilder @group forum | ||||
ForumSettingsForm | class | Drupal\forum | core/ |
Configure forum settings for this site. | 1 | |||
ForumTest | class | Drupal\Tests\forum\Functional | core/ |
Tests for forum.module. | ||||
ForumUninstallTest | class | Drupal\Tests\forum\Functional | core/ |
Tests forum module uninstallation. | ||||
ForumUninstallValidator | class | Drupal\forum\ProxyClass | core/ |
Provides a proxy class for \Drupal\forum\ForumUninstallValidator. | ||||
ForumUninstallValidator | class | Drupal\forum | core/ |
Prevents forum module from being uninstalled under certain conditions. | 2 | |||
ForumUninstallValidatorTest | class | Drupal\Tests\forum\Unit | core/ |
@coversDefaultClass \Drupal\forum\ForumUninstallValidator @group forum | ||||
ForumValidationTest | class | Drupal\Tests\forum\Kernel | core/ |
Tests forum validation constraints. |
Pagination
- Previous page
- Page 79
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.