Classes, traits, and interfaces in Drupal 9
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 |
|---|---|---|---|---|---|---|---|
| UnitTestCaseTest | class |
Drupal\ |
core/ |
Tests for the UnitTestCase class. | |||
| UnitTestSuite | class |
Drupal\ |
core/ |
Discovers tests for the unit test suite. | |||
| UnknownExtensionException | class |
Drupal\ |
core/ |
Exception class thrown when a specified extension is not on the filesystem. | 12 | ||
| UnknownExtensionTypeException | class |
Drupal\ |
core/ |
Exception thrown when a specified extension type is not known. | |||
| UnmetDependenciesException | class |
Drupal\ |
core/ |
An exception thrown if configuration has unmet dependencies. | 5 | ||
| UnprocessableHttpEntityException | class |
Drupal\ |
core/ |
A class to represent a 422 - Unprocessable Entity Exception. | 2 | ||
| UnprocessableHttpEntityExceptionNormalizer | class |
Drupal\ |
core/ |
Normalizes and UnprocessableHttpEntityException. | 2 | ||
| UnpublishAction | class |
Drupal\ |
core/ |
Unpublishes an entity. | 1 | 2 | |
| UnpublishByKeywordActionTest | class |
Drupal\ |
core/ |
@group node | |||
| UnpublishByKeywordComment | class |
Drupal\ |
core/ |
Unpublishes a comment containing certain keywords. | |||
| UnpublishByKeywordNode | class |
Drupal\ |
core/ |
Unpublishes a node containing certain keywords. | |||
| UnpublishedBlockTest | class |
Drupal\ |
core/ |
Tests unpublishing of block_content entities. | |||
| UnroutedUrlAssembler | class |
Drupal\ |
core/ |
Provides a way to build external or non Drupal local domain URLs. | 2 | 2 | |
| UnroutedUrlAssemblerInterface | interface |
Drupal\ |
core/ |
Provides a way to build external or non Drupal local domain URLs. | 1 | 7 | |
| UnroutedUrlAssemblerTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Utility\UnroutedUrlAssembler @group Utility | |||
| UnroutedUrlTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Url @group UrlTest | |||
| UnsavedPreviewTest | class |
Drupal\ |
core/ |
Tests covering Preview of unsaved Views. | |||
| UnstickyNode | class |
Drupal\ |
core/ |
Makes a node not sticky. | |||
| UnsupportedDataTypeConfigException | class |
Drupal\ |
core/ |
Exception thrown when a config data type is invalid. | 2 | ||
| UnsupportedEntityTypeDefinitionException | class |
Drupal\ |
core/ |
Defines an exception thrown when an entity type definition is invalid. | 3 | ||
| UntrustedCallbackException | class |
Drupal\ |
core/ |
Exception thrown if a callback is untrusted. | 2 | ||
| UntrustedObject | class |
Drupal\ |
core/ |
||||
| UpcastingTest | class |
Drupal\ |
core/ |
Tests upcasting of url arguments to entities. | |||
| Update | class |
Drupal\ |
core/ |
CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Update. | |||
| Update | class |
Drupal\ |
core/ |
General class for an abstracted UPDATE operation. | 2 | 3 | |
| Update | class |
Drupal\ |
core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Update. | 1 | 1 | |
| Update | class |
Drupal\ |
core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Update. | |||
| UpdateBackend | class |
Drupal\ |
core/ |
Defines a cache backend for use during Drupal database updates. | |||
| UpdateBlockForm | class |
Drupal\ |
core/ |
Provides a form to update a block. | 1 | ||
| UpdateBuildIdCommand | class |
Drupal\ |
core/ |
AJAX command for updating the value of a hidden form_build_id input element on a form. It requires the form passed in to have keys for both the old build ID in #build_id_old and the new build ID in #build_id. | 2 | ||
| UpdateCacheBackendFactory | class |
Drupal\ |
core/ |
Cache factory implementation for use during Drupal database updates. | |||
| UpdateCacheTest | class |
Drupal\ |
core/ |
Tests caches during updates. | |||
| UpdateCompilerPass | class |
Drupal\ |
core/ |
Removes services with unmet dependencies. | |||
| UpdateComplexTest | class |
Drupal\ |
core/ |
Tests the Update query builder, complex queries. | |||
| UpdateContribTest | class |
Drupal\ |
core/ |
Tests how the Update Manager module handles contributed modules and themes in a series of functional tests using mock XML data. | |||
| UpdateController | class |
Drupal\ |
core/ |
Controller routines for update routes. | |||
| UpdateDeleteFileIfStaleTest | class |
Drupal\ |
core/ |
Tests the update_delete_file_if_stale() function. | |||
| UpdateDeprecationTest | class |
Drupal\ |
core/ |
Tests deprecated update.inc functions. | |||
| UpdateDescriptionTest | class |
Drupal\ |
core/ |
Tests for update descriptions. | |||
| UpdateException | class |
Drupal\ |
core/ |
Exception class used to throw error if a module update fails. | 2 | ||
| UpdateFeedItemTest | class |
Drupal\ |
core/ |
Update feed items from a feed. | |||
| UpdateFeedTest | class |
Drupal\ |
core/ |
Update feed test. | |||
| UpdateFetcher | class |
Drupal\ |
core/ |
Fetches project information from remote locations. | 2 | ||
| UpdateFetcherInterface | interface |
Drupal\ |
core/ |
Fetches project information from remote locations. | 1 | 7 | |
| UpdateHookRegistry | class |
Drupal\ |
core/ |
Provides module updates versions handling. | 5 | 2 | |
| UpdateHookRegistryFactory | class |
Drupal\ |
core/ |
Service factory for the versioning update registry. | 2 | ||
| UpdateHookRegistryTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Update\UpdateHookRegistry @group Update | |||
| UpdateKernel | class |
Drupal\ |
core/ |
Defines a kernel which is used primarily to run the update of Drupal. | 3 | ||
| UpdateLobTest | class |
Drupal\ |
core/ |
Tests the Update query builder with LOB fields. | |||
| UpdateLocalTasksTest | class |
Drupal\ |
core/ |
Tests existence of update local tasks. |