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 |
---|---|---|---|---|---|---|---|---|
CommentFieldFilterTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests comment field filters with translations. | ||||
CommentFieldItemList | class | Drupal\comment | core/ |
Defines an item list class for comment fields. | 1 | |||
CommentFieldNameTest | class | Drupal\Tests\comment\Kernel\Views | core/ |
Tests the comment field name field. | ||||
CommentFieldsTest | class | Drupal\Tests\comment\Functional | core/ |
Tests fields on comments. | ||||
CommentForm | class | Drupal\comment | core/ |
Base handler for comment forms. | ||||
CommentHostnameTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests the hostname base field. | ||||
CommentIntegrationTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests integration of comment with other components. | ||||
CommentInterface | interface | Drupal\comment | core/ |
Provides an interface defining a comment entity. | 1 | 39 | ||
CommentInterfaceTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment user interfaces. | ||||
CommentItem | class | Drupal\comment\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'comment' field type. | ||||
CommentItemInterface | interface | Drupal\comment\Plugin\Field\FieldType | core/ |
Interface definition for Comment items. | 1 | 42 | ||
CommentItemTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests the new entity API for the comment field type. | ||||
CommentJsonAnonTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest @group #slow | ||||
CommentJsonBasicAuthTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest @group #slow | ||||
CommentJsonCookieTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest @group #slow | ||||
CommentLanguageTest | class | Drupal\Tests\comment\Functional | core/ |
Tests for comment language. | ||||
CommentLazyBuilders | class | Drupal\comment | core/ |
Defines a service for comment #lazy_builder callbacks. | 2 | |||
CommentLinkBuilder | class | Drupal\comment | core/ |
Defines a class for building markup for comment links on a commented entity. | 1 | 2 | ||
CommentLinkBuilderInterface | interface | Drupal\comment | core/ |
Defines an interface for building comment links on a commented entity. | 1 | |||
CommentLinkBuilderTest | class | Drupal\Tests\comment\Unit | core/ |
@coversDefaultClass \Drupal\comment\CommentLinkBuilder @group comment | ||||
CommentLinksAlterTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment links altering. | ||||
CommentLinksTest | class | Drupal\Tests\comment\Kernel\Views | core/ |
Tests the comment link field handlers. | ||||
CommentLinksTest | class | Drupal\Tests\comment\Functional | core/ |
Basic comment links tests to ensure markup present. | ||||
CommentLockTest | class | Drupal\Tests\comment\Unit\Entity | core/ |
Tests comment acquires and releases the right lock. | ||||
CommentManager | class | Drupal\comment | core/ |
Comment manager contains common functions to manage comment fields. | 1 | 2 | ||
CommentManagerInterface | interface | Drupal\comment | core/ |
Comment manager contains common functions to manage comment fields. | 1 | 14 | ||
CommentManagerTest | class | Drupal\Tests\comment\Unit | core/ |
@coversDefaultClass \Drupal\comment\CommentManager @group comment | ||||
CommentNameConstraint | class | Drupal\comment\Plugin\Validation\Constraint | core/ |
Supports validating comment author names. | ||||
CommentNameConstraintValidator | class | Drupal\comment\Plugin\Validation\Constraint | core/ |
Validates the CommentName constraint. | ||||
CommentNewIndicatorTest | class | Drupal\Tests\comment\Functional | core/ |
Tests the 'new' indicator posted on comments. | ||||
CommentNodeAccessTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comments with node access. | ||||
CommentNodeChangesTest | class | Drupal\Tests\comment\Functional | core/ |
Tests that comments behave correctly when the node is changed. | ||||
CommentNonNodeTest | class | Drupal\Tests\comment\Functional | core/ |
Tests commenting on a test entity. | ||||
CommentOperationsTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests comment operations. | ||||
CommentOrphanTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests loading and rendering orphan comments. | ||||
CommentPagerTest | class | Drupal\Tests\comment\Functional | core/ |
Tests paging of comments and their settings. | ||||
CommentPermalinkFormatter | class | Drupal\comment\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'comment_permalink' formatter. | ||||
CommentPreviewTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment preview. | ||||
CommentResourceTestBase | abstract class | Drupal\Tests\comment\Functional\Rest | core/ |
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/ |
1 | 2 | |||
CommentStatisticsInterface | interface | Drupal\comment | core/ |
Provides an interface for storing and retrieving comment statistics. | 1 | 1 | ||
CommentStatisticsTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment statistics on nodes. | ||||
CommentStatisticsUnitTest | class | Drupal\Tests\comment\Unit | core/ |
@coversDefaultClass \Drupal\comment\CommentStatistics @group comment | ||||
CommentStatusFieldAccessTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment status field access. | ||||
CommentStorage | class | Drupal\comment | core/ |
Defines the storage handler class for comments. | ||||
CommentStorageInterface | interface | Drupal\comment | core/ |
Defines an interface for comment entity storage classes. | 1 | 1 |
Pagination
- Previous page
- Page 24
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.