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 |
|---|---|---|---|---|---|---|---|---|
| WorkspaceAccessTestHooks | class | Drupal\workspace_access_test\Hook | core/ |
Hook implementations for workspace_access_test. | ||||
| WorkspaceActivateForm | class | Drupal\workspaces_ui\Form | core/ |
Handle activation of a workspace on administrative pages. | 1 | |||
| WorkspaceAssociationRevisionTableUpdateTest | class | Drupal\Tests\workspaces\Functional\Update | core/ |
Tests the upgrade path for the workspace_association_revision table. | ||||
| WorkspaceAssociationStringIdsUpdatePathTest | class | Drupal\Tests\workspaces\Functional\Update | core/ |
Tests the update path for string IDs in workspace_association. | ||||
| WorkspaceBypassTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests access bypass permission controls on workspaces. | ||||
| WorkspaceCacheContext | class | Drupal\workspaces | core/ |
Defines the WorkspaceCacheContext service, for "per workspace" caching. | 1 | 2 | ||
| WorkspaceCacheContextTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests the workspace cache context. | ||||
| WorkspaceConcurrentEditingTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests concurrent edits in different workspaces. | ||||
| WorkspaceConflictException | class | Drupal\workspaces | core/ |
An exception thrown when two workspaces are in a conflicting content state. | ||||
| WorkspaceContentModerationIntegrationTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests Workspaces together with Content Moderation. | ||||
| WorkspaceContentTranslationTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests entity translations with workspaces. | ||||
| WorkspaceCRUDTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests CRUD operations for workspaces. | ||||
| WorkspaceDeleteForm | class | Drupal\workspaces_ui\Form | core/ |
Provides a form for deleting a workspace. | 1 | |||
| WorkspaceDynamicSafeFormInterface | interface | Drupal\Core\Form | core/ |
Defines an interface for forms that can be workspace-safe. | 10 | 12 | ||
| WorkspaceEntityDeleteTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests entity deletions with workspaces. | ||||
| WorkspaceEntityDeleteTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests entity deletions with workspaces. | ||||
| WorkspaceEntityOperationsTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests entity operations with workspaces. | ||||
| WorkspaceEntityRepositoryTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests the entity repository integration for workspaces. | ||||
| WorkspaceForm | class | Drupal\workspaces_ui\Form | core/ |
Form controller for the workspace edit forms. | 1 | |||
| WorkspaceFormPersistenceTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests form persistence for the active workspace. | ||||
| WorkspaceFormValidationTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests Workspaces form validation. | ||||
| WorkspaceHandlerInterface | interface | Drupal\workspaces\Entity\Handler | core/ |
Defines workspace operations that need to vary by entity type. | 2 | |||
| WorkspaceIdNegotiatorInterface | interface | Drupal\workspaces\Negotiator | core/ |
Interface for workspace negotiators that return only the negotiated ID. | 2 | 1 | ||
| WorkspaceInformation | class | Drupal\workspaces | core/ |
General service for workspace support information. | 1 | 2 | ||
| WorkspaceInformationInterface | interface | Drupal\workspaces | core/ |
Provides an interface for workspace-support information. | 1 | 14 | ||
| WorkspaceInformationTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests the workspace information service. | ||||
| WorkspaceIntegrationTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests a complete publishing scenario across different workspaces. | ||||
| WorkspaceInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace entity type. | 1 | 13 | ||
| WorkspaceJsonAnonTest | class | Drupal\Tests\workspaces\Functional\Rest | core/ |
Test workspace entities for unauthenticated JSON requests. | ||||
| WorkspaceJsonBasicAuthTest | class | Drupal\Tests\workspaces\Functional\Rest | core/ |
Test workspace entities for JSON requests via basic auth. | ||||
| WorkspaceJsonCookieTest | class | Drupal\Tests\workspaces\Functional\Rest | core/ |
Test workspace entities for JSON requests with cookie authentication. | ||||
| WorkspaceListBuilder | class | Drupal\workspaces_ui | core/ |
Defines a class to build a listing of workspace entities. | 1 | |||
| WorkspaceManager | class | Drupal\workspaces | core/ |
Provides the workspace manager. | 2 | |||
| WorkspaceManagerInterface | interface | Drupal\workspaces | core/ |
Provides an interface for managing Workspaces. | 1 | 24 | ||
| WorkspaceMenuLinkContentIntegrationTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests workspace integration for custom menu links. | ||||
| WorkspaceMergeForm | class | Drupal\workspaces_ui\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. | 1 | |||
| 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. | 3 | 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. | ||||
| WorkspacePostPublishEvent | class | Drupal\workspaces\Event | core/ |
Defines the post-publish event class. | 2 | |||
| WorkspacePrePublishEvent | class | Drupal\workspaces\Event | core/ |
Defines the pre-publish event class. | 2 | |||
| WorkspaceProviderBase | abstract class | Drupal\workspaces\Provider | core/ |
Defines the base class for workspace providers. | 2 | 1 | ||
| WorkspaceProviderCollector | class | Drupal\workspaces\Provider | core/ |
Defines the workspace provider collector. | 1 | |||
| WorkspaceProviderInterface | interface | Drupal\workspaces\Provider | core/ |
Provides the interface for workspace providers. | 1 | 3 | ||
| WorkspacePublisher | class | Drupal\workspaces | core/ |
Default implementation of the workspace publisher. | 1 | |||
| WorkspacePublisherInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace publisher. | 1 | 1 |
Pagination
- Previous page
- Page 221
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.