Classes, traits, and interfaces - main - drupal

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 1529

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
WidgetOverflowTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetOverflowTest.php Tests that uploads in the 'media_library_widget' works as expected.
WidgetPluginManager class Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetPluginManager.php Plugin type manager for field widgets. 2
WidgetPluginManagerTest class Drupal\Tests\field\Kernel core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php Tests the field widget manager.
WidgetUploadTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetUploadTest.php Tests that uploads in the 'media_library_widget' works as expected.
WidgetViewsTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetViewsTest.php Tests the views in the media library widget.
WidgetWithoutTypesTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetWithoutTypesTest.php Tests the media library widget when no media types are available.
WildcardConfigActionsTest class Drupal\KernelTests\Core\Recipe core/tests/Drupal/KernelTests/Core/Recipe/WildcardConfigActionsTest.php Tests config actions targeting multiple entities using wildcards.
WildcardHtmlSupportTest class Drupal\Tests\ckeditor5\Kernel core/modules/ckeditor5/tests/src/Kernel/WildcardHtmlSupportTest.php Tests Wildcard Html Support.
WizardException class Drupal\views\Plugin\views\wizard core/modules/views/src/Plugin/views/wizard/WizardException.php A custom exception class for our errors. 1
WizardInterface interface Drupal\views\Plugin\views\wizard core/modules/views/src/Plugin/views/wizard/WizardInterface.php Defines a common interface for Views Wizard plugins. 1 2
WizardPluginBase abstract class Drupal\views\Plugin\views\wizard core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php Base class for Views wizard plugins. 11 12
WizardPluginBaseKernelTest class Drupal\Tests\views\Kernel\Wizard core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php Tests the wizard base plugin class.
WizardPluginBaseTest class Drupal\Tests\views\Unit core/modules/views/tests/src/Unit/WizardPluginBaseTest.php Tests Drupal\views\Plugin\views\wizard\WizardPluginBase.
WizardTest class Drupal\Tests\comment\Functional\Views core/modules/comment/tests/src/Functional/Views/WizardTest.php Tests the comment module integration into the wizard.
WizardTest class Drupal\Tests\views_ui\Functional core/modules/views_ui/tests/src/Functional/WizardTest.php Tests the wizard.
WizardTestBase abstract class Drupal\Tests\views\Functional\Wizard core/modules/views/tests/src/Functional/Wizard/WizardTestBase.php Views UI wizard tests. 12 4
WordLevelDiff class Drupal\Component\Diff core/lib/Drupal/Component/Diff/WordLevelDiff.php @todo document @private @subpackage DifferenceEngine 1
WorkAllocator class Drupal\TestTools\TestRunner core/tests/Drupal/TestTools/TestRunner/WorkAllocator.php Allocates available tests to test workers. 1
WorkAllocatorTest class Drupal\Tests\Core\Test core/tests/Drupal/Tests/Core/Test/WorkAllocatorTest.php Unit tests for WorkAllocator.
Workflow class Drupal\workflows\Entity core/modules/workflows/src/Entity/Workflow.php Defines the workflow entity. 31
WorkflowAccessControlHandler class Drupal\workflows core/modules/workflows/src/WorkflowAccessControlHandler.php Access controller for the Workflow entity. 2
WorkflowAccessControlHandlerTest class Drupal\Tests\workflows\Kernel core/modules/workflows/tests/src/Kernel/WorkflowAccessControlHandlerTest.php Tests Drupal\workflows\WorkflowAccessControlHandler.
WorkflowAddForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowAddForm.php Form for adding workflows. 1
WorkflowCustomAccessType class Drupal\workflow_type_test\Plugin\WorkflowType core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php A test workflow with custom state/transition access rules applied. 1
WorkflowCustomStateTransitionAccessTest class Drupal\Tests\workflows\Functional core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php Test custom provided workflow access for state/transition operations.
WorkflowDeleteForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowDeleteForm.php Builds the form to delete Workflow entities. 1
WorkflowDependenciesTest class Drupal\Tests\workflows\Kernel core/modules/workflows/tests/src/Kernel/WorkflowDependenciesTest.php Tests configuration dependencies in workflows.
WorkflowEditForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowEditForm.php The form for editing workflows. 1
WorkflowInterface interface Drupal\workflows core/modules/workflows/src/WorkflowInterface.php Provides an interface for defining workflow entities. 1 19
WorkflowJsonAnonTest class Drupal\Tests\workflows\Functional\Rest core/modules/workflows/tests/src/Functional/Rest/WorkflowJsonAnonTest.php Tests Workflow Json Anon.
WorkflowJsonBasicAuthTest class Drupal\Tests\workflows\Functional\Rest core/modules/workflows/tests/src/Functional/Rest/WorkflowJsonBasicAuthTest.php Tests Workflow Json Basic Auth.
WorkflowJsonCookieTest class Drupal\Tests\workflows\Functional\Rest core/modules/workflows/tests/src/Functional/Rest/WorkflowJsonCookieTest.php Tests Workflow Json Cookie.
WorkflowListBuilder class Drupal\workflows core/modules/workflows/src/WorkflowListBuilder.php Provides a listing of Workflow entities. 1
WorkflowResourceTestBase abstract class Drupal\Tests\workflows\Functional\Rest core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php Resource test base for Workflow entity. 6
WorkflowsHooks class Drupal\workflows\Hook core/modules/workflows/src/Hook/WorkflowsHooks.php Hook implementations for workflows.
WorkflowStateAddForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowStateAddForm.php Entity form variant for adding workflow states. 1
WorkflowStateDeleteForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowStateDeleteForm.php Builds the form to delete states from Workflow entities. 1 1
WorkflowStateEditForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowStateEditForm.php Entity form variant for editing workflow states. 1
WorkflowStateTransitionOperationsAccessCheck class Drupal\workflows core/modules/workflows/src/WorkflowStateTransitionOperationsAccessCheck.php Provides an access check for state and transition operations. 1 2
WorkflowStateTransitionOperationsAccessCheckTest class Drupal\Tests\workflows\Unit core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php Tests Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck.
WorkflowTest class Drupal\Tests\workflows\Unit core/modules/workflows/tests/src/Unit/WorkflowTest.php Tests Drupal\workflows\Plugin\WorkflowTypeBase.
WorkflowTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/WorkflowTest.php JSON:API integration test for the "Workflow" config entity type.
WorkflowTransitionAddForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowTransitionAddForm.php Entity form variant for adding workflow transitions. 1
WorkflowTransitionDeleteForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowTransitionDeleteForm.php Builds the form to delete transitions from Workflow entities. 1 1
WorkflowTransitionEditForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowTransitionEditForm.php Entity form variant for editing workflow transitions. 1
WorkflowType class Drupal\workflows\Attribute core/modules/workflows/src/Attribute/WorkflowType.php Defines a Workflow type attribute object. 7
WorkflowType class Drupal\workflows\Annotation core/modules/workflows/src/Annotation/WorkflowType.php Defines a Workflow type annotation object.
WorkflowTypeBase abstract class Drupal\workflows\Plugin core/modules/workflows/src/Plugin/WorkflowTypeBase.php A base class for Workflow type plugins. 6 8
WorkflowTypeConfigureFormBase abstract class Drupal\workflows\Plugin core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php A base class for workflow type configuration forms. 2 2
WorkflowTypeInterface interface Drupal\workflows core/modules/workflows/src/WorkflowTypeInterface.php An interface for Workflow type plugins. 2 6 1

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.