Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| UniqueLabelInListConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Uniquely labeled list item constraint validator. | ||||
| UniquePathAliasConstraint | class | Drupal\Core\Path\Plugin\Validation\Constraint | core/ |
Validation constraint for unique path alias values. | ||||
| UniquePathAliasConstraintValidator | class | Drupal\Core\Path\Plugin\Validation\Constraint | core/ |
Constraint validator for a unique path alias. | ||||
| UnitTestCase | abstract class | Drupal\Tests | core/ |
Provides a base class and helpers for Drupal unit tests. | 617 | 612 | ||
| UnitTestCaseTest | class | Drupal\Tests | core/ |
Tests for the UnitTestCase class. | ||||
| UnitTestSuite | class | Drupal\Tests\TestSuites | core/ |
Discovers tests for the unit test suite. | ||||
| UnknownExtensionException | class | Drupal\Core\Extension\Exception | core/ |
Exception class thrown when a specified extension is not on the filesystem. | 13 | |||
| UnknownExtensionTypeException | class | Drupal\Core\Extension\Exception | core/ |
Exception thrown when a specified extension type is not known. | ||||
| 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\Kernel\Action | core/ |
@group node | ||||
| UnpublishByKeywordComment | class | Drupal\comment\Plugin\Action | core/ |
Unpublishes a comment containing certain keywords. | ||||
| UnpublishByKeywordNode | class | Drupal\node\Plugin\Action | core/ |
Unpublishes a node containing certain keywords. | ||||
| 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. | 3 | |||
| UntrustedCallbackException | class | Drupal\Core\Security | core/ |
Exception thrown if a callback is untrusted. | 2 | |||
| UntrustedObject | class | Drupal\Tests\Core\Security | core/ |
|||||
| 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. | 2 | 2 | ||
| Update | class | Drupal\driver_test\Driver\Database\DrivertestMysql | core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Update. | ||||
| Update | class | Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion | core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Update. | ||||
| Update | class | Drupal\driver_test\Driver\Database\DrivertestPgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Update. | ||||
| 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. | 2 | 2 | ||
| 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 | 5 | ||
| Update | class | Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses | core/ |
CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Update. | ||||
| UpdateAddViewUpdateNotificationsPermissionTest | class | Drupal\Tests\update\Functional\Update | core/ |
Tests update_post_update_add_view_update_notifications_permission(). | ||||
| 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. | ||||
| 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. | ||||
| UpdateDeprecationTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests deprecated update.inc functions. | ||||
| UpdateDescriptionTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests for update descriptions. |
Pagination
- Previous page
- Page 176
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.