Classes, traits, and interfaces in Drupal 8
Primary tabs
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
|
Name |
Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|
| ClassyTemplatesIdenticalToStableTest | class |
Drupal\ |
core/ |
Confirms that certain Classy templates have identical equivalents in Stable. | |||
| ClassyTest | class |
Drupal\ |
core/ |
Tests the classy theme. | |||
| ClassyTest | class |
Drupal\ |
core/ |
Tests the Classy theme. | |||
| ClearTest | class |
Drupal\ |
core/ |
||||
| ClickSortingAJAXTest | class |
Drupal\ |
core/ |
Tests the click sorting AJAX functionality of Views exposed forms. | |||
| ClientErrorResponseSubscriber | class |
Drupal\ |
core/ |
Response subscriber to set the '4xx-response' cache tag on 4xx responses. | 2 | ||
| ClientFactory | class |
Drupal\ |
core/ |
Helper class to construct a HTTP client with Drupal specific config. | 2 | 2 | |
| ClientFactoryTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Http\ClientFactory @group Http | |||
| CloseDialogCommand | class |
Drupal\ |
core/ |
Defines an AJAX command that closes the current active dialog. | 1 | 6 | |
| CloseModalDialogCommand | class |
Drupal\ |
core/ |
Defines an AJAX command that closes the currently visible modal dialog. | 5 | ||
| CollectRoutesTest | class |
Drupal\ |
core/ |
Tests the REST export view plugin. | |||
| Color | class |
Drupal\ |
core/ |
Performs color conversions. | 7 | ||
| Color | class |
Drupal\ |
core/ |
Provides a form element for choosing a color. | |||
| Color | class |
Drupal\ |
core/ |
Persist color data to the config system. | 1 | ||
| Color | class |
Drupal\ |
core/ |
Drupal 7 color source from database. | |||
| ColorConfigCacheInvalidator | class |
Drupal\ |
core/ |
A subscriber invalidating cache tags when color config objects are saved. | 2 | ||
| ColorConfigSchemaTest | class |
Drupal\ |
core/ |
Ensures the color config schema is correct. | |||
| ColorLegacyTest | class |
Drupal\ |
core/ |
Tests Color module's legacy code. | |||
| ColorSafePreviewTest | class |
Drupal\ |
core/ |
Tests sanitizing color preview loaded from theme. | |||
| ColorSystemBrandingBlockAlter | class |
Drupal\ |
core/ |
Provides a trusted callback to alter the system branding block. | 1 | ||
| ColorTest | class |
Drupal\ |
core/ |
Tests Color utility class conversions. | |||
| ColorTest | class |
Drupal\ |
core/ |
Modify the Bartik theme colors and make sure the changes are reflected on the frontend. | |||
| ColorTest | class |
Drupal\ |
core/ |
Tests D7 color source plugin. | |||
| Com | class |
Drupal\ |
core/ |
Generates a UUID using the Windows internal GUID extension. | 1 | ||
| Combine | class |
Drupal\ |
core/ |
Filter handler which allows to search on multiple fields. | |||
| CommandInterface | interface |
Drupal\ |
core/ |
AJAX command interface. | 29 | 11 | |
| CommandLineOrUnsafeMethod | class |
Drupal\ |
core/ |
Reject when running from the command line or when HTTP method is not safe. | 2 | ||
| CommandLineOrUnsafeMethodTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\PageCache\RequestPolicy\CommandLineOrUnsafeMethod @group PageCache | |||
| CommandProvider | class |
Drupal\ |
composer/ |
List of all commands provided by this package. | 1 | ||
| CommandsTest | class |
Drupal\ |
core/ |
Performs tests on AJAX framework commands. | |||
| CommandsTest | class |
Drupal\ |
core/ |
Performs tests on AJAX framework commands. | |||
| CommandWithAttachedAssetsInterface | interface |
Drupal\ |
core/ |
Interface for Ajax commands that render content and attach assets. | 4 | ||
| CommandWithAttachedAssetsTrait | trait |
Drupal\ |
core/ |
Trait for Ajax commands that render content and attach assets. | |||
| Comment | class |
Drupal\ |
core/ |
Defines the comment entity class. | 61 | ||
| Comment | class |
Drupal\ |
core/ |
Tests creating comment views with the wizard. | |||
| Comment | class |
Drupal\ |
core/ |
Drupal 6 comment source from database. | |||
| Comment | class |
Drupal\ |
core/ |
Drupal 7 comment source from database. | |||
| CommentAccessControlHandler | class |
Drupal\ |
core/ |
Defines the access control handler for the comment entity type. | |||
| CommentAccessTest | class |
Drupal\ |
core/ |
Tests comment administration and preview access. | |||
| CommentActionsTest | class |
Drupal\ |
core/ |
Tests actions provided by the Comment module. | |||
| CommentAdminOverview | class |
Drupal\ |
core/ |
Provides the comments overview administration form. | 1 | ||
| CommentAdminTest | class |
Drupal\ |
core/ |
Tests comment approval functionality. | |||
| CommentAdminTest | class |
Drupal\ |
core/ |
Tests comment approval functionality. | |||
| CommentAdminViewTest | class |
Drupal\ |
core/ |
Tests comment admin view filters. | |||
| CommentAdminViewUpdateTest | class |
Drupal\ |
core/ |
Tests that comment admin view is enabled after update. | |||
| CommentAnonymousTest | class |
Drupal\ |
core/ |
Tests anonymous commenting. | |||
| CommentAttributesTest | class |
Drupal\ |
core/ |
Tests the RDFa markup of comments. | |||
| CommentBaseFieldTest | class |
Drupal\ |
core/ |
Tests that comment as a base field. | |||
| CommentBlockTest | class |
Drupal\ |
core/ |
Tests comment block functionality. | |||
| CommentBookTest | class |
Drupal\ |
core/ |
Tests visibility of comments on book pages. |