Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
CommentBreadcrumbBuilder | class | Drupal\comment | core/ |
Class to define the comment breadcrumb builder. | 2 | |||
CommentBulkForm | class | Drupal\comment\Plugin\views\field | core/ |
Defines a comment operations bulk form element. | 1 | |||
CommentBulkFormTest | class | Drupal\Tests\comment\Unit\Plugin\views\field | core/ |
@coversDefaultClass \Drupal\comment\Plugin\views\field\CommentBulkForm @group comment | ||||
CommentBundlesTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests that comment bundles behave as expected. | ||||
CommentCacheTagsTest | class | Drupal\Tests\comment\Functional | core/ |
Tests the Comment entity's cache tags. | ||||
CommentController | class | Drupal\comment\Controller | core/ |
Controller for the comment entity. | ||||
CommentCSSTest | class | Drupal\Tests\comment\Functional | core/ |
Tests CSS classes on comments. | ||||
CommentDefaultFormatter | class | Drupal\comment\Plugin\Field\FieldFormatter | core/ |
Provides a default comment formatter. | ||||
CommentDefaultFormatterCacheTagsTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests the bubbling up of comment cache tags when using the Comment list formatter on an entity. | ||||
CommentedEntity | class | Drupal\comment\Plugin\views\field | core/ |
Views field display for commented entity. | ||||
CommentEditTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests comment edit functionality. | ||||
CommentEntityTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comments with other entities. | ||||
CommentEntityTranslation | class | Drupal\comment\Plugin\migrate\source\d7 | core/ |
Provides Drupal 7 comment entity translation source plugin. | ||||
CommentEntityTranslationTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 comment entity translation source plugin. | ||||
CommentFieldAccessTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests comment field level access. | ||||
CommentFieldFilterTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests comment field filters with translations. | ||||
CommentFieldItemList | class | Drupal\comment | core/ |
Defines a item list class for comment fields. | ||||
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. | ||||
CommentHalJsonAnonTest | class | Drupal\Tests\comment\Functional\Hal | core/ |
@group hal | ||||
CommentHalJsonBasicAuthTest | class | Drupal\Tests\comment\Functional\Hal | core/ |
@group hal | ||||
CommentHalJsonCookieTest | class | Drupal\Tests\comment\Functional\Hal | core/ |
@group hal | ||||
CommentHalJsonTestBase | abstract class | Drupal\Tests\comment\Functional\Hal | core/ |
4 | 1 | |||
CommentHalJsonTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\comment\Functional\Hal\CommentHalJsonTestBase instead. |
abstract class | Drupal\Tests\hal\Functional\EntityResource\Comment | core/ |
||||
CommentHostnameTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests the hostname base field. | ||||
CommentHostnameUpdateTest | class | Drupal\Tests\comment\Functional\Update | core/ |
Tests that comment hostname settings are properly updated. | ||||
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 | 39 | ||
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 | ||||
CommentJsonBasicAuthTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentJsonCookieTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
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 | |||
CommentLegacyTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests legacy comment functionality. | ||||
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 | 13 | ||
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. |
Pagination
- Previous page
- Page 22
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.