Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| CommentPreviewTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment preview. | ||||
| CommentResourceTestBase | abstract class | Drupal\Tests\comment\Functional\Rest | core/ |
Resource test base for the comment entity. | 6 | |||
| CommentRowTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests the comment row plugin. | ||||
| CommentRssTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comments as part of an RSS feed. | ||||
| CommentSelection | class | Drupal\comment\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the comment entity type. | ||||
| CommentSourceWithHighWaterTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the Drupal 6 comment source w/ high water handling. | ||||
| CommentStatistics | class | Drupal\comment | core/ |
Service for storing and retrieving comment statistics. | 1 | 2 | ||
| CommentStatisticsInterface | interface | Drupal\comment | core/ |
Provides an interface for storing and retrieving comment statistics. | 1 | |||
| CommentStatisticsTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment statistics on nodes. | ||||
| CommentStatisticsUnitTest | class | Drupal\Tests\comment\Unit | core/ |
Tests Drupal\comment\CommentStatistics. | ||||
| CommentStatusFieldAccessTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment status field access. | ||||
| CommentStorage | class | Drupal\comment | core/ |
Defines the storage handler class for comments. | 1 | |||
| CommentStorageInterface | interface | Drupal\comment | core/ |
Defines an interface for comment entity storage classes. | 1 | 1 | ||
| CommentStorageSchema | class | Drupal\comment | core/ |
Defines the comment schema handler. | 1 | |||
| CommentStringIdEntitiesTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests that comment fields cannot be added to entities with non-integer IDs. | ||||
| CommentTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Comment" content entity type. | 1 | |||
| CommentTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 comment source plugin. | ||||
| CommentTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 comment source plugin. | ||||
| CommentTestBase | abstract class | Drupal\Tests\comment\Functional | core/ |
Provides setup and helper methods for comment tests. | 22 | 2 | ||
| CommentTestBase | abstract class | Drupal\Tests\comment\Functional\Views | core/ |
Provides setup and helper methods for comment views tests. | 6 | |||
| CommentTestBaseField | class | Drupal\comment_base_field_test\Entity | core/ |
Defines a test entity class for comment as a base field. | 1 | |||
| CommentTestController | class | Drupal\comment_test\Controller | core/ |
Controller for the comment_test.module. | ||||
| CommentTestHooks | class | Drupal\comment_test\Hook | core/ |
Hook implementations for comment_test. | ||||
| CommentTestTrait | trait | Drupal\comment\Tests | core/ |
Provides common functionality for the Comment test classes. | 45 | |||
| CommentThemeHooks | class | Drupal\comment\Hook | core/ |
Hook implementations for comment. | ||||
| CommentThreadingTest | class | Drupal\Tests\comment\Functional | core/ |
Tests to make sure the comment number increments properly. | ||||
| CommentTitleTest | class | Drupal\Tests\comment\Functional | core/ |
Tests that appropriate and accessible markup is created for comment titles. | ||||
| CommentTokenReplaceTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment token replacement. | ||||
| CommentTokensHooks | class | Drupal\comment\Hook | core/ |
Hook implementations for comment. | ||||
| CommentTranslationHandler | class | Drupal\comment | core/ |
Defines the translation handler for comments. | 1 | |||
| CommentTranslationUITest | class | Drupal\Tests\comment\Functional | core/ |
Tests the Comment Translation UI. | ||||
| CommentType | class | Drupal\comment\Entity | core/ |
Defines the comment type entity. | 29 | |||
| CommentType | class | Drupal\comment\Plugin\migrate\source | core/ |
Drupal 6/7 comment types source from database. | 1 | |||
| CommentTypeDeleteForm | class | Drupal\comment\Form | core/ |
Provides a confirmation form for deleting a comment type entity. | 1 | |||
| CommentTypeForm | class | Drupal\comment | core/ |
Base form handler for comment type edit forms. | 1 | |||
| CommentTypeInterface | interface | Drupal\comment | core/ |
Provides an interface defining a comment type entity. | 1 | 1 | ||
| CommentTypeJsonAnonTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
Tests Comment Type Json Anon. | ||||
| CommentTypeJsonBasicAuthTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
Tests Comment Type Json Basic Auth. | ||||
| CommentTypeJsonCookieTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
Tests Comment Type Json Cookie. | ||||
| CommentTypeListBuilder | class | Drupal\comment | core/ |
Defines a class to build a listing of comment type entities. | 1 | |||
| CommentTypeRequirementsTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source | core/ |
Tests check requirements for comment type source plugin. | ||||
| CommentTypeResourceTestBase | abstract class | Drupal\Tests\comment\Functional\Rest | core/ |
Resource test base for CommentType entity. | 6 | |||
| CommentTypeTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source | core/ |
Tests the comment type source plugin. | ||||
| CommentTypeTest | class | Drupal\Tests\comment\Functional | core/ |
Ensures that comment type functions work correctly. | ||||
| CommentTypeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "CommentType" config entity type. | ||||
| CommentTypeValidationTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests validation of comment_type entities. | ||||
| CommentTypeXmlAnonTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
Tests Comment Type Xml Anon. | ||||
| CommentTypeXmlBasicAuthTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
Tests Comment Type Xml Basic Auth. | ||||
| CommentTypeXmlCookieTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
Tests Comment Type Xml Cookie. | ||||
| CommentUninstallTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests comment module uninstall. |
Pagination
- Previous page
- Page 26
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.