Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| CKEditor5AllowedTagsTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5. | ||||
| CKEditor5AspectsOfCKEditor5Plugin | class | Drupal\ckeditor5\Attribute | core/ |
Defines the CKEditor5 aspect of CKEditor5 plugin. | ||||
| CKEditor5AspectsOfCKEditor5Plugin | class | Drupal\ckeditor5\Annotation | core/ |
Defines the "CKEditor 5 aspects of a CKEditor5Plugin" annotation object. | 1 | |||
| CKEditor5CacheTag | class | Drupal\ckeditor5\EventSubscriber | core/ |
A subscriber invalidating cache tags when the default theme changes. | 2 | |||
| CKEditor5CodeSyntaxTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests code block configured languages are respected. | ||||
| CKEditor5DialogTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5 to ensure correct focus management in dialogs. | ||||
| CKEditor5DialogTestController | class | Drupal\ckeditor5_test\Controller | core/ |
Provides controller for testing CKEditor in off-canvas dialogs. | ||||
| Ckeditor5DrupalElementStyleTestHooks | class | Drupal\ckeditor5_drupalelementstyle_test\Hook | core/ |
Hook implementations for ckeditor5_drupalelementstyle_test. | ||||
| CKEditor5ElementConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 element. | ||||
| CKEditor5ElementConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 element validator. | ||||
| CKEditor5FragmentLinkTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests that the fragment link points to CKEditor 5. | ||||
| CKEditor5HeightTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests ckeditor height respects field rows config. | ||||
| Ckeditor5Hooks | class | Drupal\ckeditor5\Hook | core/ |
Hook implementations for ckeditor5. | 3 | |||
| CKEditor5ImageController | class | Drupal\ckeditor5\Controller | core/ |
Returns response for CKEditor 5 Simple image upload adapter. | 1 | |||
| CKEditor5ImageControllerTest | final class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests CKEditor5ImageController. | ||||
| CKEditor5MarkupTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5. | ||||
| CKEditor5MediaAndFilterSettingsInSyncConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensure CKEditor 5 media plugin's and media filter's settings are in sync. | ||||
| CKEditor5MediaAndFilterSettingsInSyncConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 Media plugin in sync with the filter settings validator. | 1 | |||
| CKEditor5MediaController | class | Drupal\ckeditor5\Controller | core/ |
Provides an API for checking if a media entity has image field. | ||||
| CKEditor5OffCanvasTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5 to ensure correct styling in off-canvas. | ||||
| CKEditor5OffCanvasTestController | class | Drupal\ckeditor5_test\Controller | core/ |
Provides controller for testing CKEditor in off-canvas dialogs. | ||||
| CKEditor5Plugin | class | Drupal\ckeditor5\Attribute | core/ |
The CKEditor5Plugin attribute. | 1 | |||
| CKEditor5Plugin | class | Drupal\ckeditor5\Annotation | core/ |
Defines a CKEditor5Plugin annotation object. | 1 | |||
| CKEditor5PluginConfigurableInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for configurable CKEditor 5 plugins. | 12 | 11 | ||
| CKEditor5PluginConfigurableTrait | trait | Drupal\ckeditor5\Plugin | core/ |
Provides a trait for configurable CKEditor 5 plugins. | 12 | |||
| CKEditor5PluginDefault | class | Drupal\ckeditor5\Plugin | core/ |
Defines the default CKEditor 5 plugin implementation. | 14 | 16 | ||
| CKEditor5PluginDefinition | final class | Drupal\ckeditor5\Plugin | core/ |
Provides an implementation of a CKEditor 5 plugin definition. | 19 | |||
| CKEditor5PluginElementsSubsetInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for plugins that can support an elements subset. | 7 | 8 | ||
| CKEditor5PluginInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for CKEditor 5 plugins. | 2 | |||
| CKEditor5PluginManager | class | Drupal\ckeditor5\Plugin | core/ |
Provides a CKEditor 5 plugin manager. | 3 | 2 | ||
| CKEditor5PluginManagerInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Provides the interface for a plugin manager of CKEditor 5 plugins. | 1 | 8 | ||
| CKEditor5PluginManagerTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Tests different ways of enabling CKEditor 5 plugins. | ||||
| Ckeditor5ReadOnlyModeHooks | class | Drupal\ckeditor5_read_only_mode\Hook | core/ |
Hook implementations for ckeditor5_read_only_mode. | ||||
| CKEditor5ReadOnlyModeTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests read-only mode for CKEditor 5. | ||||
| CKEditor5StylesheetsTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Test the ckeditor5-stylesheets theme config property. | ||||
| CKEditor5Test | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\Plugin\Editor\CKEditor5. | ||||
| 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. | 15 | |||
| Ckeditor5TestHooks | class | Drupal\ckeditor5_test\Hook | core/ |
Hook implementations for ckeditor5_test. | ||||
| Ckeditor5TestModuleAllowedImageHooks | class | Drupal\ckeditor5_test_module_allowed_image\Hook | core/ |
Hook implementations for ckeditor5_test_module_allowed_image. | ||||
| CKEditor5TestTrait | trait | Drupal\Tests\ckeditor5\Traits | core/ |
Provides methods to test CKEditor 5. | 13 | |||
| CKEditor5ToolbarTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5 editor UI with Toolbar module. | ||||
| CKEditor5ValidationTestTrait | trait | Drupal\Tests\ckeditor5\Kernel | core/ |
Defines a trait for testing CKEditor 5 validity. | ||||
| CKEditor5ValidationTestTrait | trait | Drupal\Tests\ckeditor5\Traits | core/ |
Provides methods to test CKEditor 5 validation. | 1 | |||
| CkeditorTestHooks | class | Drupal\ckeditor_test\Hook | core/ |
Hook implementations for ckeditor_test. | ||||
| ClaroBlockFilterTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs BlockFilterTest in Claro. | ||||
| ClaroEntityDisplayTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs EntityDisplayTest in Claro. | ||||
| ClaroFormHooks | class | Drupal\claro\Hook | core/ |
Form hooks for claro. | ||||
| ClaroHooks | class | Drupal\claro\Hook | core/ |
Hook implementations for claro. | ||||
| ClaroLayoutBuilderTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the layout builder with the Claro theme. |
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.