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 |
|---|---|---|---|---|---|---|---|---|
| UnitTestCaseTest | class | Drupal\Tests | core/ |
Tests for the UnitTestCase class. | 1 | 1 | ||
| UnitTestSuite | in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement and test discovery will be handled differently in PHPUnit 10. |
class | Drupal\Tests\TestSuites | core/ |
Discovers tests for the unit test suite. | |||
| UnknownCheckpointException | final class | Drupal\Core\Config\Checkpoint | core/ |
Thrown when trying to access a checkpoint that does not exist. | 1 | |||
| UnknownExtensionException | class | Drupal\Core\Extension\Exception | core/ |
Exception class thrown when a specified extension is not on the filesystem. | 19 | |||
| UnknownExtensionTypeException | class | Drupal\Core\Extension\Exception | core/ |
Exception thrown when a specified extension type is not known. | 2 | |||
| UnknownRecipeException | final class | Drupal\Core\Recipe | core/ |
Exception thrown when recipe is can not be found. | 1 | |||
| UnmetDependenciesException | class | Drupal\Core\Config | core/ |
An exception thrown if configuration has unmet dependencies. | 5 | |||
| UnprocessableHttpEntityException | class | Drupal\jsonapi\Exception | core/ |
A class to represent a 422 - Unprocessable Entity Exception. | 2 | |||
| UnprocessableHttpEntityExceptionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes and UnprocessableHttpEntityException. | 2 | |||
| UnpublishAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Unpublishes an entity. | 1 | 2 | ||
| UnpublishByKeywordActionTest | class | Drupal\Tests\node\Unit\Action | core/ |
@group node @group legacy | ||||
| UnpublishByKeywordActionTest | class | Drupal\Tests\action\Kernel | core/ |
@group action | ||||
| UnpublishByKeywordComment | class | Drupal\action\Plugin\Action | core/ |
Unpublishes a comment containing certain keywords. | 1 | 1 | ||
| UnpublishByKeywordComment | in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\action\Plugin\Action\UnpublishByKeywordComment instead. |
class | Drupal\comment\Plugin\Action | core/ |
Unpublishes a comment containing certain keywords. | 1 | ||
| UnpublishByKeywordCommentTest | class | Drupal\Tests\action\Kernel | core/ |
@group action | ||||
| UnpublishByKeywordCommentTest | class | Drupal\Tests\comment\Unit\Action | core/ |
@group comment @group legacy | ||||
| UnpublishByKeywordNode | class | Drupal\action\Plugin\Action | core/ |
Unpublishes a node containing certain keywords. | 1 | 1 | ||
| UnpublishByKeywordNode | in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\action\Plugin\Action\UnpublishByKeywordNode instead. |
class | Drupal\node\Plugin\Action | core/ |
Unpublishes a node containing certain keywords. | 1 | ||
| UnpublishedBlockTest | class | Drupal\Tests\block_content\Functional | core/ |
Tests unpublishing of block_content entities. | ||||
| UnroutedUrlAssembler | class | Drupal\Core\Utility | core/ |
Provides a way to build external or non Drupal local domain URLs. | 2 | 2 | ||
| UnroutedUrlAssemblerInterface | interface | Drupal\Core\Utility | core/ |
Provides a way to build external or non Drupal local domain URLs. | 1 | 7 | ||
| UnroutedUrlAssemblerTest | class | Drupal\Tests\Core\Utility | core/ |
@coversDefaultClass \Drupal\Core\Utility\UnroutedUrlAssembler[[api-linebreak]] @group Utility | ||||
| UnroutedUrlTest | class | Drupal\Tests\Core | core/ |
@coversDefaultClass \Drupal\Core\Url[[api-linebreak]] @group UrlTest | ||||
| UnsavedPreviewTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests covering Preview of unsaved Views. | ||||
| UnserializableRequest | class | Drupal\Tests\Core\TempStore | core/ |
A class for testing. | ||||
| UnstickyNode | class | Drupal\node\Plugin\Action | core/ |
Makes a node not sticky. | ||||
| UnsupportedDataTypeConfigException | class | Drupal\Core\Config | core/ |
Exception thrown when a config data type is invalid. | 2 | |||
| UnsupportedEntityTypeDefinitionException | class | Drupal\Core\Entity\Exception | core/ |
Defines an exception thrown when an entity type definition is invalid. | 4 | |||
| UntrustedCallbackException | class | Drupal\Core\Security | core/ |
Exception thrown if a callback is untrusted. | 4 | |||
| UntrustedObject | class | Drupal\Tests\Core\Security | core/ |
|||||
| UnversionedAssetTest | class | Drupal\FunctionalTests\Asset | core/ |
Tests asset aggregation. | ||||
| UpcastingTest | class | Drupal\Tests\system\Functional\ParamConverter | core/ |
Tests upcasting of URL arguments to entities. | ||||
| Update | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Update. | 1 | 1 | ||
| Update | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Update. | ||||
| Update | in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. |
class | Drupal\Core\Database\Driver\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Update. | 1 | ||
| Update | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted UPDATE operation. | 4 | 7 | ||
| Update | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Update. | ||||
| Update | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Update. | ||||
| Update10101 | class | Drupal\pgsql | core/ |
An update class for sequence ownership. | 2 | |||
| UpdateBackend | class | Drupal\Core\Update | core/ |
Defines a cache backend for use during Drupal database updates. | ||||
| UpdateBlockForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to update a block. | 1 | |||
| UpdateBuildIdCommand | class | Drupal\Core\Ajax | core/ |
Ajax command for updating the form build ID. | 2 | |||
| UpdateCacheBackendFactory | class | Drupal\Core\Update | core/ |
Cache factory implementation for use during Drupal database updates. | ||||
| UpdateCacheTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests caches during updates. | ||||
| UpdateCalculateProjectDataTest | class | Drupal\Tests\update\Kernel | core/ |
Test the values set in update_calculate_project_data(). | ||||
| UpdateCompilerPass | class | Drupal\Core\Update | core/ |
Removes services with unmet dependencies. | ||||
| UpdateComplexTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Update query builder, complex queries. | ||||
| UpdateContribTest | class | Drupal\Tests\update\Functional | core/ |
Tests how the Update Manager handles contributed modules and themes. | ||||
| UpdateController | class | Drupal\update\Controller | core/ |
Controller routines for update routes. | ||||
| UpdateDeleteFileIfStaleTest | class | Drupal\Tests\update\Kernel | core/ |
Tests the update_delete_file_if_stale() function. |
Pagination
- Previous page
- Page 185
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.