Classes, traits, and interfaces - 10.3.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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| WildcardHtmlSupportTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
@covers \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getCKEditor5PluginConfig[[api-linebreak]] @group ckeditor5 @internal | ||||
| WizardException | class | Drupal\views\Plugin\views\wizard | core/ |
A custom exception class for our errors. | 1 | |||
| WizardInterface | interface | Drupal\views\Plugin\views\wizard | core/ |
Defines a common interface for Views Wizard plugins. | 1 | 2 | ||
| WizardPluginBase | abstract class | Drupal\views\Plugin\views\wizard | core/ |
Base class for Views wizard plugins. | 11 | 12 | ||
| WizardPluginBaseKernelTest | class | Drupal\Tests\views\Kernel\Wizard | core/ |
Tests the wizard base plugin class. | ||||
| WizardPluginBaseTest | class | Drupal\Tests\views\Unit | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\wizard\WizardPluginBase[[api-linebreak]] | ||||
| WizardTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests the comment module integration into the wizard. | ||||
| WizardTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the wizard. | ||||
| WizardTestBase | abstract class | Drupal\Tests\views\Functional\Wizard | core/ |
Views UI wizard tests. | 12 | 4 | ||
| WordLevelDiff | class | Drupal\Component\Diff | core/ |
@todo document @private @subpackage DifferenceEngine | 1 | |||
| Workflow | class | Drupal\workflows\Entity | core/ |
Defines the workflow entity. | 32 | |||
| WorkflowAccessControlHandler | class | Drupal\workflows | core/ |
Access controller for the Workflow entity. | ||||
| WorkflowAccessControlHandlerTest | class | Drupal\Tests\workflows\Kernel | core/ |
@coversDefaultClass \Drupal\workflows\WorkflowAccessControlHandler[[api-linebreak]] @group workflows @group #slow | ||||
| WorkflowAddForm | class | Drupal\workflows\Form | core/ |
Form for adding workflows. | ||||
| WorkflowCustomAccessType | class | Drupal\workflow_type_test\Plugin\WorkflowType | core/ |
A test workflow with custom state/transition access rules applied. | 1 | |||
| WorkflowCustomStateTransitionAccessTest | class | Drupal\Tests\workflows\Functional | core/ |
Test custom provided workflow access for state/transition operations. | ||||
| WorkflowDeleteForm | class | Drupal\workflows\Form | core/ |
Builds the form to delete Workflow entities. | ||||
| WorkflowDependenciesTest | class | Drupal\Tests\workflows\Kernel | core/ |
Tests configuration dependencies in workflows. | ||||
| WorkflowEditForm | class | Drupal\workflows\Form | core/ |
The form for editing workflows. | ||||
| WorkflowInterface | interface | Drupal\workflows | core/ |
Provides an interface for defining workflow entities. | 1 | 18 | ||
| WorkflowJsonAnonTest | class | Drupal\Tests\workflows\Functional\Rest | core/ |
@group rest | ||||
| WorkflowJsonBasicAuthTest | class | Drupal\Tests\workflows\Functional\Rest | core/ |
@group rest | ||||
| WorkflowJsonCookieTest | class | Drupal\Tests\workflows\Functional\Rest | core/ |
@group rest | ||||
| WorkflowListBuilder | class | Drupal\workflows | core/ |
Provides a listing of Workflow entities. | ||||
| WorkflowResourceTestBase | abstract class | Drupal\Tests\workflows\Functional\Rest | core/ |
ResourceTestBase for Workflow entity. | 6 | |||
| WorkflowStateAddForm | class | Drupal\workflows\Form | core/ |
Entity form variant for adding workflow states. | ||||
| WorkflowStateDeleteForm | class | Drupal\workflows\Form | core/ |
Builds the form to delete states from Workflow entities. | 1 | |||
| WorkflowStateEditForm | class | Drupal\workflows\Form | core/ |
Entity form variant for editing workflow states. | ||||
| WorkflowStateTransitionOperationsAccessCheck | class | Drupal\workflows | core/ |
Provides an access check for state and transition operations. | 1 | 2 | ||
| WorkflowStateTransitionOperationsAccessCheckTest | class | Drupal\Tests\workflows\Unit | core/ |
@coversDefaultClass \Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck[[api-linebreak]] @group workflows | ||||
| WorkflowTest | class | Drupal\Tests\workflows\Unit | core/ |
@coversDefaultClass \Drupal\workflows\Plugin\WorkflowTypeBase[[api-linebreak]] | ||||
| WorkflowTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Workflow" config entity type. | ||||
| WorkflowTransitionAddForm | class | Drupal\workflows\Form | core/ |
Entity form variant for adding workflow transitions. | ||||
| WorkflowTransitionDeleteForm | class | Drupal\workflows\Form | core/ |
Builds the form to delete transitions from Workflow entities. | 1 | |||
| WorkflowTransitionEditForm | class | Drupal\workflows\Form | core/ |
Entity form variant for editing workflow transitions. | ||||
| WorkflowType | class | Drupal\workflows\Attribute | core/ |
Defines a Workflow type attribute object. | 7 | |||
| WorkflowType | class | Drupal\workflows\Annotation | core/ |
Defines a Workflow type annotation object. | ||||
| WorkflowTypeBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for Workflow type plugins. | 6 | 6 | ||
| WorkflowTypeConfigureFormBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for workflow type configuration forms. | 2 | 2 | ||
| WorkflowTypeInterface | interface | Drupal\workflows | core/ |
An interface for Workflow type plugins. | 2 | 5 | 1 | |
| WorkflowTypeManager | class | Drupal\workflows | core/ |
Provides a Workflow type plugin manager. | 2 | 2 | ||
| WorkflowTypeStateFormBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for workflow type state forms. | 2 | 2 | ||
| WorkflowTypeTransitionFormBase | abstract class | Drupal\workflows\Plugin | core/ |
A base class for workflow type transition forms. | 1 | 1 | ||
| WorkflowUiNoTypeTest | class | Drupal\Tests\workflows\Functional | core/ |
Tests workflow UI when there are no types. | ||||
| WorkflowUiTest | class | Drupal\Tests\workflows\Functional | core/ |
Tests workflow creation UI. | ||||
| WorkflowValidationTest | class | Drupal\Tests\workflows\Kernel | core/ |
Tests validation of workflow entities. | ||||
| WorkflowXmlAnonTest | class | Drupal\Tests\workflows\Functional\Rest | core/ |
@group rest | ||||
| WorkflowXmlBasicAuthTest | class | Drupal\Tests\workflows\Functional\Rest | core/ |
@group rest | ||||
| WorkflowXmlCookieTest | class | Drupal\Tests\workflows\Functional\Rest | core/ |
@group rest | ||||
| Workspace | class | Drupal\workspaces\Entity | core/ |
The workspace entity class. | 29 |
Pagination
- Previous page
- Page 199
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.