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 |
|---|---|---|---|---|---|---|---|---|
| OEmbedIframeController | class | Drupal\media\Controller | core/ |
Controller which renders an oEmbed resource in a bare page (without blocks). | 1 | |||
| OEmbedIframeControllerTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Drupal\media\Controller\OEmbedIframeController. | ||||
| OEmbedInterface | interface | Drupal\media\Plugin\media\Source | core/ |
Defines additional functionality for source plugins that use oEmbed. | 1 | 5 | ||
| OEmbedMediaSource | class | Drupal\media\Attribute | core/ |
Defines a OEmbedMediaSource attribute. | 1 | |||
| OEmbedResourceConstraint | class | Drupal\media\Plugin\Validation\Constraint | core/ |
Checks if a value represents a valid oEmbed resource URL. | 1 | |||
| OEmbedResourceConstraintValidator | class | Drupal\media\Plugin\Validation\Constraint | core/ |
Validates oEmbed resource URLs. | 1 | |||
| OEmbedResourceConstraintValidatorTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Drupal\media\Plugin\Validation\Constraint\OEmbedResourceConstraintValidator. | ||||
| OEmbedSourceTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Drupal\media\Plugin\media\Source\OEmbed. | ||||
| OEmbedTestTrait | trait | Drupal\Tests\media\Traits | core/ |
Contains helper functions for testing oEmbed functionality in isolation. | 6 | |||
| OEmbedWidget | class | Drupal\media\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'oembed_textfield' widget. | 1 | |||
| OffCanvasDialogTest | class | Drupal\Tests\system\Functional\Ajax | core/ |
Performs tests on opening and manipulating dialogs via AJAX commands. | ||||
| OffCanvasRenderer | class | Drupal\Core\Render\MainContent | core/ |
Default main content renderer for off-canvas dialog requests. | 3 | |||
| OffCanvasTest | class | Drupal\Tests\system\FunctionalJavascript | core/ |
Tests the off-canvas dialog functionality. | ||||
| OffCanvasTestBase | abstract class | Drupal\Tests\system\FunctionalJavascript | core/ |
Base class contains common test functionality for the Off-canvas dialog. | 7 | 6 | ||
| OffCanvasTestHooks | class | Drupal\off_canvas_test\Hook | core/ |
Hook implementations for off_canvas_test. | ||||
| OffCanvasTestTrait | trait | Drupal\Tests\system\Traits | core/ |
Provides helper methods for interacting with the off-canvas area. | 8 | |||
| OffsetPage | class | Drupal\jsonapi\Query | core/ |
Value object for containing the requested offset and page parameters. | 3 | |||
| OffsetPageTest | class | Drupal\Tests\jsonapi\Unit\Query | core/ |
Tests Drupal\jsonapi\Query\OffsetPage. | ||||
| OliveroAvoidStorageUsingTest | final class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests usage of localStorage. | ||||
| OliveroHexToHslTest | final class | Drupal\Tests\olivero\Unit | core/ |
Tests the \Drupal\olivero\HexToHslTrait:convertHexToHsl() function. | ||||
| OliveroHooks | class | Drupal\olivero\Hook | core/ |
Hook implementations for olivero. | ||||
| OliveroMessagesTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs OliveroMessagesTest in Olivero. | ||||
| OliveroPagePreprocessHooks | class | Drupal\olivero\Hook | core/ |
Page preprocess hooks for olivero. | ||||
| OliveroPostUpdateTest | class | Drupal\Tests\olivero\Functional\Update | core/ |
Tests the update path for Olivero. | ||||
| OliveroPreRender | class | Drupal\olivero | core/ |
Implements trusted prerender callbacks for the Olivero theme. | 1 | |||
| OliveroTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the Olivero theme. | ||||
| OliveroTestThemeHooks | class | Drupal\olivero_test\Hook | core/ |
Hook implementations for olivero_test. | ||||
| OmittedData | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents resource data that should be omitted from the JSON:API document. | 1 | |||
| OnBehalfOfOtherModuleHook | class | Drupal\hook_collector_on_behalf\Hook | core/ |
Hook implementation on behalf of another module. | ||||
| OneTimeAuthentication | final class | Drupal\user | core/ |
Generate and verify one time authentication codes. | 14 | |||
| OneTimeAuthenticationTest | class | Drupal\Tests\user\Kernel | core/ |
Tests OneTimeAuthentication service. | ||||
| OpCodeCache | class | Drupal\Component\Utility | core/ |
Provides helpers to handle PHP opcode caches. | 6 | |||
| OpenDialogCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command to open certain content in a dialog. | 2 | 3 | ||
| OpenerResolver | class | Drupal\media_library | core/ |
Defines a class to resolve media library openers. | 2 | |||
| OpenerResolverInterface | interface | Drupal\media_library | core/ |
Defines an interface to get a media library opener from the container. | 1 | 3 | ||
| OpenModalDialogCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command to open certain content in a dialog in a modal dialog. | 5 | |||
| OpenModalDialogWithUrl | class | Drupal\Core\Ajax | core/ |
Provides an AJAX command for opening a modal with URL. | 3 | |||
| OpenOffCanvasDialogCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command to open content in a dialog in an off-canvas tray. | 2 | |||
| OpenOffCanvasDialogCommandTest | class | Drupal\Tests\Core\Ajax | core/ |
Tests Drupal\Core\Ajax\OpenOffCanvasDialogCommand. | ||||
| OpenTelemetryAuthenticatedPerformanceTest | class | Drupal\Tests\demo_umami\FunctionalJavascript | core/ |
Tests demo_umami profile performance. | ||||
| OpenTelemetryFrontPagePerformanceTest | class | Drupal\Tests\demo_umami\FunctionalJavascript | core/ |
Tests demo_umami profile performance. | ||||
| OpenTelemetryNodePagePerformanceTest | class | Drupal\Tests\demo_umami\FunctionalJavascript | core/ |
Tests demo_umami profile performance. | ||||
| OpenTelemetryPerformanceTest | class | Drupal\Tests\demo_umami\FunctionalJavascript | core/ |
Tests demo_umami profile performance. | ||||
| OperationBase | abstract class | Drupal\image_test\Plugin\ImageToolkit\Operation\test | core/ |
Provides a base class for test operations. | 5 | |||
| OperationData | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Holds parameter data for operation objects during operation creation only. | 1 | |||
| OperationFactory | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Create Scaffold operation objects based on provided metadata. | 1 | |||
| OperationInterface | interface | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Interface for scaffold operation objects. | 1 | 1 | ||
| Operations | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a set of operations links. | ||||
| Opml | class | Drupal\views\Plugin\views\style | core/ |
Default style plugin to render an OPML feed. | ||||
| OpmlFields | class | Drupal\views\Plugin\views\row | core/ |
Renders an OPML item based on fields. |
Pagination
- Previous page
- Page 148
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.