Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
WorkflowStateDeleteForm | class | Drupal\workflows\Form | core/ |
Builds the form to delete states from Workflow entities. | 1 | 1 | ||
WorkflowStateEditForm | class | Drupal\workflows\Form | core/ |
Entity form variant for editing workflow states. | 1 | |||
WorkflowStateTransitionOperationsAccessCheck | class | Drupal\workflows | core/ |
Provides an access check for state and transition operations. | 2 | |||
WorkflowTransitionAddForm | class | Drupal\workflows\Form | core/ |
Entity form variant for adding workflow transitions. | 1 | |||
WorkflowTransitionDeleteForm | class | Drupal\workflows\Form | core/ |
Builds the form to delete transitions from Workflow entities. | 1 | 1 | ||
WorkflowTransitionEditForm | class | Drupal\workflows\Form | core/ |
Entity form variant for editing workflow transitions. | 1 | |||
WorkflowType | class | Drupal\workflows\Annotation | core/ |
Defines a Workflow type annotation object. | ||||
WorkflowType | class | Drupal\workflows\Attribute | core/ |
Defines a Workflow type attribute object. | 2 | |||
WorkflowTypeBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for Workflow type plugins. | 1 | 1 | ||
WorkflowTypeConfigureFormBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for workflow type configuration forms. | 1 | 1 | ||
WorkflowTypeInterface | interface | Drupal\workflows | core/ |
An interface for Workflow type plugins. | 2 | 3 | 1 | |
WorkflowTypeManager | class | Drupal\workflows | core/ |
Provides a Workflow type plugin manager. | 2 | |||
WorkflowTypeStateFormBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for workflow type state forms. | 1 | 1 | ||
WorkflowTypeTransitionFormBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for workflow type transition forms. | ||||
Workspace | class | Drupal\workspaces\Entity | core/ |
The workspace entity class. | 1 | |||
WorkspaceAccessControlHandler | class | Drupal\workspaces | core/ |
Defines the access control handler for the workspace entity type. | 1 | |||
WorkspaceAccessException | class | Drupal\workspaces | core/ |
Exception thrown when trying to switch to an inaccessible workspace. | 1 | 3 | ||
WorkspaceActivateForm | class | Drupal\workspaces\Form | core/ |
Handle activation of a workspace on administrative pages. | 1 | |||
WorkspaceAssociation | class | Drupal\workspaces | core/ |
Provides a class for CRUD operations on workspace associations. | 2 | 2 | ||
WorkspaceAssociationInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace_association service. | 1 | 3 | ||
WorkspaceCacheContext | class | Drupal\workspaces | core/ |
Defines the WorkspaceCacheContext service, for "per workspace" caching. | 2 | |||
WorkspaceConflictException | class | Drupal\workspaces | core/ |
An exception thrown when two workspaces are in a conflicting content state. | ||||
WorkspaceDeleteForm | class | Drupal\workspaces\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 | ||
WorkspaceForm | class | Drupal\workspaces\Form | core/ |
Form controller for the workspace edit forms. | 1 | |||
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. | 1 | |||
WorkspaceInformation | class | Drupal\workspaces | core/ |
General service for workspace support information. | 2 | |||
WorkspaceInformationInterface | interface | Drupal\workspaces | core/ |
Provides an interface for workspace-support information. | 1 | 6 | ||
WorkspaceInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace entity type. | 1 | 6 | ||
WorkspaceListBuilder | class | Drupal\workspaces | 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 | 11 | ||
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 | |||
WorkspaceNegotiatorInterface | interface | Drupal\workspaces\Negotiator | core/ |
Workspace negotiators provide a way to get the active workspace. | 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 | |||
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 | |||
WorkspacePublisher | class | Drupal\workspaces | core/ |
Default implementation of the workspace publisher. | ||||
WorkspacePublisherInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace publisher. | 1 | |||
WorkspacePublishEvent | abstract class | Drupal\workspaces\Event | core/ |
Defines the workspace publish event. | 2 | 2 | ||
WorkspacePublishException | class | Drupal\workspaces | core/ |
An exception thrown when a workspace can not be published. | ||||
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 | 1 | ||
WorkspaceRequestSubscriber | class | Drupal\workspaces\EventSubscriber | core/ |
Provides a event subscriber for setting workspace-specific cache keys. | 2 | |||
WorkspaceSafeFormInterface | interface | Drupal\Core\Form | core/ |
Defines an interface for forms that are safe to be submitted in a workspace. | 13 | 15 |