Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| WorkspaceJsonAnonTest | class | Drupal\Tests\workspaces\Functional\EntityResource | core/ |
Test workspace entities for unauthenticated JSON requests. | ||||
| WorkspaceJsonBasicAuthTest | class | Drupal\Tests\workspaces\Functional\EntityResource | core/ |
Test workspace entities for JSON requests via basic auth. | ||||
| WorkspaceJsonCookieTest | class | Drupal\Tests\workspaces\Functional\EntityResource | core/ |
Test workspace entities for JSON requests with cookie authentication. | ||||
| WorkspaceListBuilder | class | Drupal\workspaces | core/ |
Defines a class to build a listing of workspace entities. | ||||
| WorkspaceManager | class | Drupal\workspaces | core/ |
Provides the workspace manager. | 2 | |||
| WorkspaceManagerInterface | interface | Drupal\workspaces | core/ |
Provides an interface for managing Workspaces. | 1 | 13 | ||
| WorkspaceMergeForm | class | Drupal\workspaces\Form | core/ |
Provides a form that merges the contents for a workspace into another one. | 1 | |||
| WorkspaceMerger | class | Drupal\workspaces | core/ |
Default implementation of the workspace merger. | ||||
| WorkspaceMergerInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace merger. | 1 | |||
| WorkspaceMergerTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests workspace merging. | ||||
| WorkspaceNegotiatorInterface | interface | Drupal\workspaces\Negotiator | core/ |
Workspace negotiators provide a way to get the active workspace. | 2 | 1 | ||
| WorkspaceOperationFactory | class | Drupal\workspaces | core/ |
Defines a factory class for workspace operations. | 2 | 2 | ||
| WorkspaceOperationInterface | interface | Drupal\workspaces | core/ |
Defines an interface for workspace operations. | 2 | |||
| WorkspacePermissionsTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests permission controls on workspaces. | ||||
| WorkspacePublisher | class | Drupal\workspaces | core/ |
Default implementation of the workspace publisher. | ||||
| WorkspacePublisherInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace publisher. | 1 | |||
| WorkspacePublishForm | class | Drupal\workspaces\Form | core/ |
Provides the workspace publishing form. | 1 | |||
| WorkspaceRepository | class | Drupal\workspaces | core/ |
Provides the default workspace tree lookup operations. | 2 | |||
| WorkspaceRepositoryInterface | interface | Drupal\workspaces | core/ |
Provides an interface for workspace tree lookup operations. | 1 | 2 | ||
| WorkspaceRequestSubscriber | class | Drupal\workspaces\EventSubscriber | core/ |
Provides a event subscriber for setting workspace-specific cache keys. | 1 | 2 | ||
| WorkspaceRequestSubscriberTest | class | Drupal\Tests\workspaces\Unit | core/ |
@coversDefaultClass \Drupal\workspaces\EventSubscriber\WorkspaceRequestSubscriber[[api-linebreak]] | ||||
| WorkspaceResourceTestBase | abstract class | Drupal\Tests\workspaces\Functional\EntityResource | core/ |
Base class for workspace EntityResource tests. | 6 | |||
| WorkspacesAliasRepository | class | Drupal\workspaces | core/ |
Provides workspace-specific path alias lookup queries. | ||||
| WorkspacesContentModerationStateTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
Tests that Workspaces and Content Moderation work together properly. | ||||
| WorkspaceSelection | class | Drupal\workspaces\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the workspace entity type. | ||||
| WorkspacesServiceProvider | class | Drupal\workspaces | core/ |
Defines a service provider for the Workspaces module. | ||||
| WorkspacesUninstallTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests uninstalling the Workspaces module. | ||||
| WorkspaceSwitcherBlock | class | Drupal\workspaces\Plugin\Block | core/ |
Provides a 'Workspace switcher' block. | ||||
| WorkspaceSwitcherForm | class | Drupal\workspaces\Form | core/ |
Provides a form that activates a different workspace. | 1 | |||
| WorkspaceSwitcherTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests workspace switching functionality. | ||||
| WorkspaceTest | class | Drupal\Tests\workspaces\Functional | core/ |
Test the workspace entity. | ||||
| WorkspaceTestTrait | trait | Drupal\Tests\workspaces\Kernel | core/ |
A trait with common workspaces testing functionality. | 1 | |||
| WorkspaceTestUtilities | trait | Drupal\Tests\workspaces\Functional | core/ |
Utility methods for use in BrowserTestBase tests. | 1 | |||
| WorkspaceToolbarIntegrationTest | class | Drupal\Tests\workspaces\FunctionalJavascript | core/ |
Tests workspace settings stray integration. | ||||
| WorkspaceViewBuilder | class | Drupal\workspaces | core/ |
Provides a Workspace view builder. | ||||
| WorkspaceViewTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests permission controls on workspaces. | ||||
| WorkspaceXmlAnonTest | class | Drupal\Tests\workspaces\Functional\EntityResource | core/ |
Test workspace entities for unauthenticated XML requests. | ||||
| WorkspaceXmlBasicAuthTest | class | Drupal\Tests\workspaces\Functional\EntityResource | core/ |
Test workspace entities for XML requests with cookie authentication. | ||||
| WorkspaceXmlCookieTest | class | Drupal\Tests\workspaces\Functional\EntityResource | core/ |
Test workspace entities for XML requests. | ||||
| WriteSafeSessionHandler | class | Drupal\Core\Session | core/ |
Wraps the session handler to prevent writes when not necessary or allowed. | 1 | 2 | ||
| WriteSafeSessionHandlerInterface | interface | Drupal\Core\Session | core/ |
Provides an interface for session handlers where writing can be disabled. | 1 | |||
| WriteSafeSessionHandlerTest | class | Drupal\Tests\Core\Session | core/ |
Tests \Drupal\Core\Session\WriteSafeSessionHandler. | ||||
| WysiwygEditor | class | Drupal\quickedit_test\Plugin\InPlaceEditor | core/ |
Defines the 'wysiwyg' in-place editor. | ||||
| XdebugRequestTrait | trait | Drupal\Tests | core/ |
1 | ||||
| XdebugRequestTraitTest | class | Drupal\Tests\Core\Test | core/ |
Provides tests for the Xdebug request trait. | ||||
| XmlEncoder | class | Drupal\serialization\Encoder | core/ |
Adds XML support for serializer. | 2 | 2 | ||
| XmlEncoderTest | class | Drupal\Tests\serialization\Unit\Encoder | core/ |
@coversDefaultClass \Drupal\serialization\Encoder\XmlEncoder[[api-linebreak]] @group serialization | ||||
| XmlEntityNormalizationQuirksTrait | trait | Drupal\Tests\rest\Functional\EntityResource | core/ |
Trait for EntityResourceTestBase subclasses testing $format='xml'. | 153 | |||
| XmlNormalizationQuirksTrait | trait | Drupal\Tests\rest\Functional | core/ |
Trait for ResourceTestBase subclasses testing $format='xml'. | 1 | |||
| Xss | class | Drupal\Component\Utility | core/ |
Provides helper to filter for cross-site scripting. | 1 | 50 |
Pagination
- Previous page
- Page 190
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.