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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
ViewListBuilder | class |
Drupal\ |
core/ |
Defines a class to build a listing of view entities. | |||
ViewPreviewForm | class |
Drupal\ |
core/ |
Form controller for the Views preview form. | |||
State | class |
Drupal\ |
core/ |
A value object representing a workflow state. | 8 | ||
Transition | class |
Drupal\ |
core/ |
A transition value object that describes the transition between states. | 5 | ||
WorkflowAccessControlHandler | class |
Drupal\ |
core/ |
Access controller for the Workflow entity. | |||
WorkflowListBuilder | class |
Drupal\ |
core/ |
Provides a listing of Workflow entities. | |||
WorkflowStateTransitionOperationsAccessCheck | class |
Drupal\ |
core/ |
Provides an access check for state and transition operations. | 1 | 2 | |
WorkflowTypeManager | class |
Drupal\ |
core/ |
Provides a Workflow type plugin manager. | 2 | 2 | |
EntityAccess | class |
Drupal\ |
core/ |
Service wrapper for hooks relating to entity access control. | 1 | ||
EntityOperations | class |
Drupal\ |
core/ |
Defines a class for reacting to entity events. | 1 | ||
FormOperations | class |
Drupal\ |
core/ |
Defines a class for reacting to form operations. | 1 | ||
WorkspaceAccessControlHandler | class |
Drupal\ |
core/ |
Defines the access control handler for the workspace entity type. | |||
WorkspaceAccessException | class |
Drupal\ |
core/ |
Exception thrown when trying to switch to an inaccessible workspace. | 1 | 3 | |
WorkspaceCacheContext | class |
Drupal\ |
core/ |
Defines the WorkspaceCacheContext service, for "per workspace" caching. | 1 | 2 | |
WorkspaceConflictException | class |
Drupal\ |
core/ |
An exception thrown when two workspaces are in a conflicting content state. | |||
WorkspaceListBuilder | class |
Drupal\ |
core/ |
Defines a class to build a listing of workspace entities. | |||
WorkspaceRepository | class |
Drupal\ |
core/ |
Provides the default workspace tree lookup operations. | 2 | ||
WorkspaceViewBuilder | class |
Drupal\ |
core/ |
Provides a Workspace view builder. | |||
WorkspacesAliasRepository | class |
Drupal\ |
core/ |
Provides workspace-specific path alias lookup queries. | |||
WorkspacesServiceProvider | class |
Drupal\ |
core/ |
Defines a service provider for the Workspaces module. | |||
BrowserWithJavascriptTest | class |
Drupal\ |
core/ |
Tests if we can execute JavaScript in the browser. | |||
JavascriptDeprecationTest | class |
Drupal\ |
core/ |
Tests Javascript deprecation notices. | |||
JavascriptErrorsSuppressionTest | class |
Drupal\ |
core/ |
Tests that Drupal.throwError can be suppressed to allow a test to pass. | |||
JavascriptErrorsTest | class |
Drupal\ |
core/ |
Tests that Drupal.throwError will cause a test failure. | |||
JavascriptGetDrupalSettingsTest | class |
Drupal\ |
core/ |
Tests Drupal settings retrieval in WebDriverTestBase tests. | |||
WebDriverCurlService | class |
Drupal\ |
core/ |
Provides a curl service to interact with Selenium driver. | 1 | ||
WebDriverTestBase | abstract class |
Drupal\ |
core/ |
Runs a browser test using a driver that supports JavaScript. | 149 | 144 | |
WebDriverWebAssert | class |
Drupal\ |
core/ |
Defines a JSWebAssert with no support for status code and header assertions. | |||
BrowserTestBaseTest | class |
Drupal\ |
core/ |
Tests BrowserTestBase functionality. | |||
BrowserTestBaseUserAgentTest | class |
Drupal\ |
core/ |
Tests BrowserTestBase functionality. | |||
ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest | class |
Drupal\ |
core/ |
@group Database | |||
FolderTest | class |
Drupal\ |
core/ |
Tests BrowserTestBase's treatment of hook_install() during setup. | |||
GetTestMethodCallerExtendsTest | class |
Drupal\ |
core/ |
Test for BrowserTestBase::getTestMethodCaller() in child classes. | |||
GetTestMethodCallerTest | class |
Drupal\ |
core/ |
Explicit test for BrowserTestBase::getTestMethodCaller(). | 1 | ||
MailCaptureTest | class |
Drupal\ |
core/ |
Tests the collection of emails during testing. | |||
UserHelpersTest | class |
Drupal\ |
core/ |
Tests User related helper methods of BrowserTestBase. | |||
WebAssertTest | class |
Drupal\ |
core/ |
Tests WebAssert functionality. | |||
ConfigFormTestBase | abstract class |
Drupal\ |
core/ |
Full generic test suite for any form that data with the configuration system. | 2 | 2 | |
KernelTestBaseDatabaseDriverModuleTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\KernelTests\KernelTestBase | |||
KernelTestBaseShutdownTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\KernelTests\KernelTestBase | |||
KernelTestBaseTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\KernelTests\KernelTestBase | |||
TestSiteApplication | class |
Drupal\ |
core/ |
Application wrapper for test site commands. | 1 | ||
TestSiteInstallTestScript | class |
Drupal\ |
core/ |
Setup file used by TestSiteApplicationTest. | |||
TestSiteMultilingualInstallTestScript | class |
Drupal\ |
core/ |
Setup file used by TestSiteApplicationTest. | |||
TestSiteOliveroInstallTestScript | class |
Drupal\ |
core/ |
Setup file used by TestSiteInstallTestScript. | |||
TestVarDumper | class |
Drupal\ |
core/ |
Provides handlers for the Symfony VarDumper to work within tests. | 1 | ||
ComposerIntegrationTest | class |
Drupal\ |
core/ |
Tests Composer integration. | |||
DocumentElement | class |
Drupal\ |
core/ |
Document element. | |||
DrupalTestBrowser | class |
Drupal\ |
core/ |
Enables a BrowserKitDriver mink driver to use a Guzzle client. | 1 | ||
ExpectDeprecationTest | class |
Drupal\ |
core/ |
Ensures Drupal has test coverage of Symfony's deprecation testing. |