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

Pages

Other projects