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 |
|---|---|---|---|---|---|---|---|---|
| DynamicEntityTypeParamConverterTrait | trait | Drupal\Core\ParamConverter | core/ |
Provides a trait to replace dynamic entity types in routes. | ||||
| DynamicLocalTasks | class | Drupal\media\Plugin\Derivative | core/ |
Generates media-related local tasks. | 1 | |||
| DynamicLocalTasks | class | Drupal\content_moderation\Plugin\Derivative | core/ |
Generates moderation-related local tasks. | 1 | |||
| DynamicMenuLinkMock | class | Drupal\Tests\Core\Menu | core/ |
Defines a mock implementation of a dynamic menu link used in tests only. | ||||
| DynamicPageCacheHooks | class | Drupal\dynamic_page_cache\Hook | core/ |
Hook implementations for dynamic_page_cache. | ||||
| DynamicPageCacheIntegrationTest | class | Drupal\Tests\dynamic_page_cache\Functional | core/ |
Enables the Dynamic Page Cache and tests it in various scenarios. | ||||
| DynamicPageCacheSubscriber | class | Drupal\dynamic_page_cache\EventSubscriber | core/ |
Returns cached responses as early and avoiding as much work as possible. | 7 | 2 | ||
| DynamicPageCacheTestController | class | Drupal\dynamic_page_cache_test | core/ |
Controller routines for dynamic_page_cache_test routes. | ||||
| DynamicPluginConfigWithCsrfTokenUrlTrait | trait | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
Provides a trait for CKEditor 5 with dynamically generated CSRF token URLs. | ||||
| EarlyDateTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Posts an article with a taxonomy term and a date prior to 1970. | ||||
| EarlyFormatSetter | final class | Drupal\jsonapi\Routing | core/ |
Sets the 'api_json' format for requests to JSON:API resources. | 2 | |||
| EarlyRenderingControllerTest | class | Drupal\Tests\system\Functional\Common | core/ |
Verifies that bubbleable metadata of early rendering is not lost. | ||||
| EarlyRenderingControllerWrapperSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Subscriber that wraps controllers, to handle early rendering. | 2 | |||
| EarlyRenderingTestController | class | Drupal\early_rendering_controller_test | core/ |
Controller routines for early_rendering_test routes. | ||||
| EditDetails | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for editing the details of a View. | ||||
| EditModeTest | class | Drupal\Tests\contextual\FunctionalJavascript | core/ |
Tests edit mode. | ||||
| Editor | class | Drupal\editor\Attribute | core/ |
Defines an Editor attribute object. | 4 | |||
| Editor | class | Drupal\editor\Entity | core/ |
Defines the configured text editor entity. | 63 | |||
| Editor | class | Drupal\editor\Annotation | core/ |
Defines an Editor annotation object. | ||||
| EditorAccessControlHandler | class | Drupal\editor | core/ |
Defines the access control handler for the text editor entity type. | 1 | |||
| EditorAdminTest | class | Drupal\Tests\editor\FunctionalJavascript | core/ |
Tests Editor Admin. | ||||
| EditorAdminTest | class | Drupal\Tests\editor\Functional | core/ |
Tests administration of text editors. | ||||
| EditorBase | abstract class | Drupal\editor\Plugin | core/ |
Defines a base class from which other modules providing editors may extend. | 3 | 3 | ||
| EditorConfigEntityUnitTest | class | Drupal\Tests\editor\Unit | core/ |
Tests Drupal\editor\Entity\Editor. | ||||
| EditorConfigTranslationSubscriber | class | Drupal\editor\EventSubscriber | core/ |
Adds configuration names to configuration mapper on POPULATE_MAPPER event. | 2 | |||
| EditorController | class | Drupal\editor | core/ |
Returns responses for Editor module routes. | ||||
| EditorDialogSave | class | Drupal\editor\Ajax | core/ |
Provides an AJAX command for saving the contents of an editor dialog. | 1 | |||
| EditorFileReference | class | Drupal\editor\Plugin\Filter | core/ |
Provides a filter to track images uploaded via a Text Editor. | ||||
| EditorFileReferenceFilterTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests Editor module's file reference filter. | ||||
| EditorFileUsageTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests tracking of file usage by the Text Editor module. | ||||
| EditorFilterIntegrationTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests integration with filter module. | ||||
| EditorHooks | class | Drupal\editor\Hook | core/ |
Hook implementations for editor. | 1 | |||
| EditorialContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base entity class with extended revision and publishing support. | 5 | 5 | ||
| EditorImageUploadSettings | class | Drupal\editor | core/ |
Subform helper to configure the text editor's image upload settings. | 3 | |||
| EditorInterface | interface | Drupal\editor | core/ |
Provides an interface defining a text editor entity. | 1 | 34 | ||
| EditorJsonAnonTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
Tests Editor Json Anon. | ||||
| EditorJsonBasicAuthTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
Tests Editor Json Basic Auth. | ||||
| EditorJsonCookieTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
Tests Editor Json Cookie. | ||||
| EditorLoadingTest | class | Drupal\Tests\editor\Functional | core/ |
Tests loading of text editors. | ||||
| EditorManager | class | Drupal\editor\Plugin | core/ |
Configurable text editor manager. | 1 | 2 | ||
| EditorManagerTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests detection of text editors and correct generation of attachments. | ||||
| EditorPluginInterface | interface | Drupal\editor\Plugin | core/ |
Defines an interface for configurable text editors. | 1 | 1 | ||
| EditorPrivateFileReferenceFilterTest | class | Drupal\Tests\editor\Functional | core/ |
Tests Editor module's file reference filter with private files. | ||||
| EditorResourceTestBase | abstract class | Drupal\Tests\editor\Functional\Rest | core/ |
Resource test base for Editor entity. | 6 | |||
| EditorSecurityTest | class | Drupal\Tests\editor\Functional | core/ |
Tests XSS protection for content creators when using text editors. | ||||
| EditorTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Editor" config entity type. | ||||
| EditorTestHooks | class | Drupal\editor_test\Hook | core/ |
Hook implementations for editor_test. | ||||
| EditorTestTextLongItem | class | Drupal\editor_test\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'editor_test_text_long' field type. | ||||
| EditorValidationTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests validation of editor entities. | ||||
| EditorXmlAnonTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
Tests Editor Xml Anon. |
Pagination
- Previous page
- Page 56
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.