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 |
---|---|---|---|---|---|---|---|---|
CheckProviderInterface | interface | Drupal\Core\Access | core/ |
Provides the available access checkers by service IDs. | 1 | 1 | ||
CheckRequirementsTest | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Tests check requirements exception on DestinationBase. | ||||
Cherry | class | Drupal\plugin_test\Plugin\plugin_test\fruit | core/ |
Plugin annotation @Plugin( id = "cherry", label = "Cherry", color = "red" ) | ||||
ChmodInterface | interface | Drupal\Core\FileTransfer | core/ |
Defines an interface to chmod files. | 3 | |||
ChooseBlockController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to choose a new block. | ||||
ChooseSectionController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to choose a new section. | ||||
CKEditor | class | Drupal\ckeditor\Plugin\Editor | core/ |
Defines a CKEditor-based text editor for Drupal. | 1 | |||
CKEditorAdminSortTrait | trait | Drupal\Tests\ckeditor\Traits | core/ |
Provides callback for simulated CKEditor toolbar configuration change. | 1 | |||
CKEditorAdminTest | class | Drupal\Tests\ckeditor\Functional | core/ |
Tests administration of CKEditor. | ||||
CKEditorIntegrationTest | class | Drupal\Tests\ckeditor\FunctionalJavascript | core/ |
Tests the integration of CKEditor. | ||||
CKEditorIntegrationTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
@coversDefaultClass \Drupal\media_library\Plugin\CKEditorPlugin\DrupalMediaLibrary @group media_library | ||||
CKEditorIntegrationTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
@coversDefaultClass \Drupal\media\Plugin\CKEditorPlugin\DrupalMedia @group media | ||||
CKEditorLoadingTest | class | Drupal\Tests\ckeditor\Functional | core/ |
Tests loading of CKEditor. | ||||
CkeditorOffCanvasTestController | class | Drupal\ckeditor_test | core/ |
Provides controller for testing CKEditor in off-canvas dialogs. | ||||
CKEditorPlugin | class | Drupal\ckeditor\Annotation | core/ |
Defines a CKEditorPlugin annotation object. | ||||
CKEditorPluginBase | abstract class | Drupal\ckeditor | core/ |
Defines a base CKEditor plugin implementation. | 6 | 6 | ||
CKEditorPluginButtonsInterface | interface | Drupal\ckeditor | core/ |
Defines an interface for CKEditor plugins with buttons. | 4 | 3 | ||
CKEditorPluginConfigurableInterface | interface | Drupal\ckeditor | core/ |
Defines an interface for configurable CKEditor plugins. | 4 | 4 | ||
CKEditorPluginContextualInterface | interface | Drupal\ckeditor | core/ |
Defines an interface for contextually enabled CKEditor plugins. | 5 | 5 | ||
CKEditorPluginCssInterface | interface | Drupal\ckeditor | core/ |
Defines an interface for CKEditor plugins with associated CSS. | 4 | 4 | ||
CKEditorPluginInterface | interface | Drupal\ckeditor | core/ |
Defines an interface for (loading of) CKEditor plugins. | 7 | 2 | ||
CKEditorPluginManager | class | Drupal\ckeditor | core/ |
Provides a CKEditor Plugin plugin manager. | 3 | 2 | ||
CKEditorPluginManagerTest | class | Drupal\Tests\ckeditor\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor\CKEditorPluginManager | ||||
CKEditorPluginManagerTest | class | Drupal\Tests\ckeditor\Kernel | core/ |
Tests different ways of enabling CKEditor plugins. | ||||
CKEditorStylesComboAdminTest | class | Drupal\Tests\ckeditor\Functional | core/ |
Tests administration of the CKEditor StylesCombo plugin. | ||||
CKEditorStylesComboTranslationTest | class | Drupal\Tests\ckeditor\Functional | core/ |
Tests administration of the CKEditor StylesCombo plugin. | ||||
CKEditorTest | class | Drupal\Tests\ckeditor\Kernel | core/ |
Tests for the 'CKEditor' text editor plugin. | ||||
CKEditorTestTrait | trait | Drupal\Tests\ckeditor\Traits | core/ |
Provides methods to test CKEditor. | 3 | |||
CKEditorToolbarButtonTest | class | Drupal\Tests\ckeditor\Functional | core/ |
Tests CKEditor toolbar buttons when the language direction is RTL. | ||||
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. | ||||
ClaroPreRender | class | Drupal\claro | core/ |
Implements trusted prerender callbacks for the Claro theme. | 1 | |||
ClaroTableDragTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs TableDragTest in Claro. | ||||
ClaroTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the Claro theme. | ||||
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 | |||
ClassFinderTest | class | Drupal\Tests\Component\ClassFinder | core/ |
@coversDefaultClass \Drupal\Component\ClassFinder\ClassFinder @group ClassFinder | ||||
ClassLoaderTest | class | Drupal\Tests\Core\ClassLoader | core/ |
@group ClassLoader @group legacy @runTestsInSeparateProcesses | ||||
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. | 2 | 2 | ||
ClassResolverInterface | interface | Drupal\Core\DependencyInjection | core/ |
Provides an interface to get a instance of a class with dependency injection. | 1 | 21 | ||
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"); |
Pagination
- Previous page
- Page 20
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.