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 |
---|---|---|---|---|---|---|---|---|
CollectRoutesTest | class | Drupal\Tests\rest\Unit | core/ |
Tests the REST export view plugin. | ||||
Color | class | Drupal\Core\Render\Element | core/ |
Provides a form element for choosing a color. | ||||
Color | class | Drupal\Component\Utility | core/ |
Performs color conversions. | 6 | |||
ColorTest | class | Drupal\Tests\Component\Utility | core/ |
Tests Color utility class conversions. | ||||
Com | class | Drupal\Component\Uuid | core/ |
Generates a UUID using the Windows internal GUID extension. | 1 | |||
Combine | class | Drupal\views\Plugin\views\filter | core/ |
Filter handler which allows to search on multiple fields. | ||||
CommandInterface | interface | Drupal\Core\Ajax | core/ |
AJAX command interface. | 31 | 8 | ||
CommandLineOrUnsafeMethod | class | Drupal\Core\PageCache\RequestPolicy | core/ |
Reject when running from the command line or when HTTP method is not safe. | 2 | |||
CommandLineOrUnsafeMethodTest | class | Drupal\Tests\Core\PageCache | core/ |
@coversDefaultClass \Drupal\Core\PageCache\RequestPolicy\CommandLineOrUnsafeMethod @group PageCache | ||||
CommandProvider | class | Drupal\Composer\Plugin\Scaffold | composer/ |
List of all commands provided by this package. | 1 | |||
CommandsTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Performs tests on AJAX framework commands. | ||||
CommandsTest | class | Drupal\KernelTests\Core\Ajax | core/ |
Performs tests on AJAX framework commands. | ||||
CommandWithAttachedAssetsInterface | interface | Drupal\Core\Ajax | core/ |
Interface for Ajax commands that render content and attach assets. | 5 | |||
CommandWithAttachedAssetsTrait | trait | Drupal\Core\Ajax | core/ |
Trait for Ajax commands that render content and attach assets. | ||||
Comment | class | Drupal\comment\Entity | core/ |
Defines the comment entity class. | 57 | |||
Comment | class | Drupal\comment\Plugin\views\wizard | core/ |
Tests creating comment views with the wizard. | ||||
Comment | class | Drupal\comment\Plugin\migrate\source\d6 | core/ |
Drupal 6 comment source from database. | ||||
Comment | class | Drupal\comment\Plugin\migrate\source\d7 | core/ |
Drupal 7 comment source from database. | ||||
CommentAccessControlHandler | class | Drupal\comment | core/ |
Defines the access control handler for the comment entity type. | ||||
CommentAccessTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment administration and preview access. | ||||
CommentActionsTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests actions provided by the Comment module. | ||||
CommentAdminOverview | class | Drupal\comment\Form | core/ |
Provides the comments overview administration form. | 1 | |||
CommentAdminTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment approval functionality. | ||||
CommentAdminTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests comment approval functionality. | ||||
CommentAdminViewTest | class | Drupal\Tests\comment\Kernel\Views | core/ |
Tests comment admin view filters. | ||||
CommentAnonymousTest | class | Drupal\Tests\comment\Functional | core/ |
Tests anonymous commenting. | ||||
CommentApproveLinkTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Test the "approve_comment" views field for approving comments. | ||||
CommentBaseFieldTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests that comment as a base field. | ||||
CommentBlockTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment block functionality. | ||||
CommentBookTest | class | Drupal\Tests\book\Functional\Comment | core/ |
Tests visibility of comments on book pages. | ||||
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 comment cache tag bubbling up when using the Comment list formatter. | ||||
CommentDepthTest | class | Drupal\Tests\comment\Kernel\Views | core/ |
Tests the depth of the comment field handler. | ||||
CommentDisplayConfigurableTest | class | Drupal\Tests\comment\Functional | core/ |
Tests making comment base fields' displays configurable. | ||||
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. | ||||
CommentEntityReferenceTest | class | Drupal\Tests\comment\Functional | core/ |
Tests that comments behave correctly when added as entity references. | ||||
CommentEntityTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comments with other entities. | ||||
CommentEntityTranslation | class | Drupal\comment\Plugin\migrate\source\d7 | core/ |
Drupal 7 comment entity translation source plugin. | ||||
CommentEntityTranslationCheckRequirementsTest | class | Drupal\Tests\comment\Kernel\Migrate\d7 | core/ |
Tests check requirements for comment entity translation source plugin. | ||||
CommentEntityTranslationTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 comment entity translation source plugin. | ||||
CommentExtrasTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Comment" content entity type. | ||||
CommentFieldAccessTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests comment field level access. |
Pagination
- Previous page
- Page 23
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.