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 |
---|---|---|---|---|---|---|---|---|
ClassyTemplatesIdenticalToStableTest | class | Drupal\Tests\Core\Theme | core/ |
Confirms that certain Classy templates have identical equivalents in Stable. | ||||
ClassyTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the classy theme. | ||||
ClassyTest | class | Drupal\Tests\system\Kernel\Render | core/ |
Tests the Classy theme. | ||||
ClearTest | class | Drupal\Tests\system\Functional\Cache | core/ |
|||||
ClickSortingAJAXTest | class | Drupal\Tests\views\FunctionalJavascript | core/ |
Tests the click sorting AJAX functionality of Views exposed forms. | ||||
ClientErrorResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to set the '4xx-response' cache tag on 4xx responses. | 2 | |||
ClientFactory | class | Drupal\Core\Http | core/ |
Helper class to construct a HTTP client with Drupal specific config. | 2 | 2 | ||
ClientFactoryTest | class | Drupal\Tests\Core\Http | core/ |
@coversDefaultClass \Drupal\Core\Http\ClientFactory @group Http | ||||
CloseDialogCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command that closes the current active dialog. | 1 | 6 | ||
CloseModalDialogCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command that closes the currently visible modal dialog. | 5 | |||
CollectRoutesTest | class | Drupal\Tests\rest\Unit | core/ |
Tests the REST export view plugin. | ||||
Color | class | Drupal\color\Plugin\migrate\destination | core/ |
Persist color data to the config system. | 1 | |||
Color | class | Drupal\color\Plugin\migrate\source\d7 | core/ |
Drupal 7 color source from database. | ||||
Color | class | Drupal\Core\Render\Element | core/ |
Provides a form element for choosing a color. | ||||
Color | class | Drupal\Component\Utility | core/ |
Performs color conversions. | 7 | |||
ColorConfigCacheInvalidator | class | Drupal\color\EventSubscriber | core/ |
A subscriber invalidating cache tags when color config objects are saved. | 2 | |||
ColorConfigSchemaTest | class | Drupal\Tests\color\Functional | core/ |
Ensures the color config schema is correct. | ||||
ColorLegacyTest | class | Drupal\Tests\color\Kernel | core/ |
Tests Color module's legacy code. | ||||
ColorSafePreviewTest | class | Drupal\Tests\color\Functional | core/ |
Tests sanitizing color preview loaded from theme. | ||||
ColorSystemBrandingBlockAlter | class | Drupal\color | core/ |
Provides a trusted callback to alter the system branding block. | 1 | |||
ColorTest | class | Drupal\Tests\color\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 color source plugin. | ||||
ColorTest | class | Drupal\Tests\color\Functional | core/ |
Modify the Bartik theme colors and make sure the changes are reflected on the frontend. | ||||
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. | 29 | 11 | ||
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\KernelTests\Core\Ajax | core/ |
Performs tests on AJAX framework commands. | ||||
CommandsTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Performs tests on AJAX framework commands. | ||||
CommandWithAttachedAssetsInterface | interface | Drupal\Core\Ajax | core/ |
Interface for Ajax commands that render content and attach assets. | 4 | |||
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. | 61 | |||
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\Functional | 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. | ||||
CommentAdminViewUpdateTest | class | Drupal\Tests\comment\Functional\Update | core/ |
Tests that comment admin view is enabled after update. | ||||
CommentAnonymousTest | class | Drupal\Tests\comment\Functional | core/ |
Tests anonymous commenting. | ||||
CommentAttributesTest | class | Drupal\Tests\rdf\Functional | core/ |
Tests the RDFa markup of 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\comment\Functional | core/ |
Tests visibility of comments on book pages. |
Pagination
- Previous page
- Page 21
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.