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 |
---|---|---|---|---|---|---|---|---|
CKEditor5StylesheetsTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Test the ckeditor5-stylesheets theme config property. | ||||
CKEditor5Test | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\Editor\CKEditor5 @group ckeditor5 @internal | ||||
CKEditor5Test | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5. | ||||
CKEditor5TestBase | abstract class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Base class for testing CKEditor 5. | 13 | |||
CKEditor5TestTrait | trait | Drupal\Tests\ckeditor5\Traits | core/ |
Provides methods to test CKEditor 5. | 11 | |||
CKEditor5ToolbarTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5 editor UI with Toolbar module. | ||||
CKEditor5UpdateCodeBlockConfigurationTest | class | Drupal\Tests\ckeditor5\Functional\Update | core/ |
@covers ckeditor5_post_update_code_block @group Update @group ckeditor5 | ||||
CKEditor5UpdateImageToolbarItemTest | class | Drupal\Tests\ckeditor5\Functional\Update | core/ |
Tests the update path for the CKEditor 5 image toolbar item. | ||||
CKEditor5UpdateListMultiBlockTest | class | Drupal\Tests\ckeditor5\Functional\Update | core/ |
@covers ckeditor5_post_update_list_multiblock @group Update @group ckeditor5 | ||||
CKEditor5UpdateOlStartReversed | class | Drupal\Tests\ckeditor5\Functional\Update | core/ |
@covers ckeditor5_post_update_list_start_reversed @group Update @group ckeditor5 | ||||
CKEditor5UpdatePluginSettingsSortTest | class | Drupal\Tests\ckeditor5\Functional\Update | core/ |
@covers ckeditor5_post_update_plugins_settings_export_order @group Update @group ckeditor5 | ||||
CKEditor5ValidationTestTrait | trait | Drupal\Tests\ckeditor5\Kernel | core/ |
Defines a trait for testing CKEditor 5 validity. | ||||
CKEditorStylesheetsWarningTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests warnings when ckeditor_stylesheets do not have CKEditor 5 equivalents. | ||||
ClaroBlockFilterTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs BlockFilterTest in Claro. | ||||
ClaroEntityDisplayTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs EntityDisplayTest in Claro. | ||||
ClaroLayoutBuilderTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the layout builder with the Claro theme. | ||||
ClaroMenuUiJavascriptTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs MenuUiJavascriptTest in Claro. | ||||
ClaroModalDisplayTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests that buttons in modals are not in their button pane. | ||||
ClaroPasswordConfirmWidgetTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests the password confirm widget with Claro theme. | ||||
ClaroPreRender | class | Drupal\claro | core/ |
Implements trusted prerender callbacks for the Claro theme. | 2 | |||
ClaroTableDragTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests draggable tables with Claro theme. | ||||
ClaroTableTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests Claro specific table functionality. | ||||
ClaroTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the Claro theme. | ||||
ClaroVerticalTabsTest | class | Drupal\KernelTests\Core\Theme | core/ |
Confirms that Claro can render vertical tabs correctly. | ||||
ClaroViewsBulkOperationsTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests Claro's Views Bulk Operations form. | ||||
ClaroViewsUiTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs tests on Views UI using Claro. | ||||
ClassFinder | class | Drupal\Component\ClassFinder | core/ |
A Utility class that uses active autoloaders to find a file for a class. | 2 | |||
ClassFinderInterface | interface | Drupal\Component\ClassFinder | core/ |
Finds a class in a PSR-0 structure. | 2 | 1 | ||
ClassFinderTest | class | Drupal\Tests\Component\ClassFinder | core/ |
@coversDefaultClass \Drupal\Component\ClassFinder\ClassFinder @group ClassFinder | ||||
ClassLoaderTest | class | Drupal\Tests\system\Functional\Module | core/ |
Tests class loading for modules. | ||||
ClassRequiresAvailable | class | Drupal\BuildTests\Framework\Tests | core/ |
@requires externalCommand available_command | ||||
ClassRequiresUnavailable | class | Drupal\BuildTests\Framework\Tests | core/ |
@requires externalCommand unavailable_command | ||||
ClassResolver | class | Drupal\Core\DependencyInjection | core/ |
Implements the class resolver interface supporting class names and services. | 3 | 2 | ||
ClassResolverInterface | interface | Drupal\Core\DependencyInjection | core/ |
Provides interface to get an instance of a class with dependency injection. | 1 | 22 | ||
ClassWithConstants | class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
1 | ||||
ClassWithInvalidAnnotationTargetAtClass | class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @AnnotationTargetPropertyMethod("Some data"); | ||||
ClassWithInvalidAnnotationTargetAtMethod | class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @AnnotationTargetClass("Some data"); | ||||
ClassWithInvalidAnnotationTargetAtProperty | class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @AnnotationTargetClass("Some data"); | ||||
ClassWithValidAnnotationTarget | class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @AnnotationTargetClass("Some data"); | ||||
ClassWriter | final class | Drupal\TestTools\PhpUnitCompatibility | core/ |
Helper class to rewrite PHPUnit's TestCase class. | 2 | |||
ClearCacheForm | class | Drupal\system\Form | core/ |
Clear caches for this site. | 1 | |||
ClearTest | class | Drupal\Tests\system\Functional\Cache | core/ |
Tests our clearing is done the proper way. | ||||
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. | 1 | 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 | |||
CodeBlock | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Code Block plugin configuration. | 1 | |||
CollapsedSummariesTest | class | Drupal\Tests\node\FunctionalJavascript | core/ |
Tests that outlines of node meta values are displayed in summaries and tabs. |
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.