Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| UniqueFieldConstraintTestHooks | class | Drupal\unique_field_constraint_test\Hook | core/ |
Hook implementations for unique_field_constraint_test. | ||||
| UniqueFieldValueValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates that a field is unique for the given entity type. | 3 | |||
| UniqueLabelInListConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Uniquely labeled list item constraint. | ||||
| 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. | ||||
| UniqueValuesConstraintValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests the unique field value validation constraint. | ||||
| UnitTest | final class | Drupal\Tests\Component\Foo | core/ |
|||||
| UnitTestCase | abstract class | Drupal\Tests | core/ |
Provides a base class and helpers for Drupal unit tests. | 719 | 719 | ||
| UnitTestCaseTest | class | Drupal\Tests | core/ |
Tests for the UnitTestCase class. | ||||
| 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. | 20 | |||
| UnknownExtensionTypeException | class | Drupal\Core\Extension\Exception | core/ |
Exception thrown when a specified extension type is not known. | 2 | |||
| UnknownPathExcluder | final class | Drupal\package_manager\PathExcluder | core/ |
Excludes unknown paths from stage operations. | 1 | |||
| UnknownPathExcluderTest | class | Drupal\Tests\package_manager\Kernel\PathExcluder | core/ |
Tests Unknown Path Excluder. | ||||
| 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 | |||
| UnpackCollection | final class | Drupal\Composer\Plugin\RecipeUnpack | composer/ |
A collection with packages to unpack. | ||||
| UnpackCommand | final class | Drupal\Composer\Plugin\RecipeUnpack | composer/ |
The "drupal:recipe-unpack" command class. | ||||
| Unpacker | final class | Drupal\Composer\Plugin\RecipeUnpack | composer/ |
Handles the details of unpacking a specific recipe. | ||||
| UnpackManager | final class | Drupal\Composer\Plugin\RecipeUnpack | composer/ |
Manages the recipe unpacking process. | ||||
| UnpackOptions | final class | Drupal\Composer\Plugin\RecipeUnpack | composer/ |
Per-project options from the 'extras' section of the composer.json file. | ||||
| UnpackRecipeTest | class | Drupal\BuildTests\Composer\Plugin\Unpack\Functional | core/ |
Tests recipe unpacking. | ||||
| 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 | ||
| 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 | 11 | ||
| UnroutedUrlAssemblerTest | class | Drupal\Tests\Core\Utility | core/ |
Tests Drupal\Core\Utility\UnroutedUrlAssembler. | ||||
| UnroutedUrlTest | class | Drupal\Tests\Core | core/ |
Tests Drupal\Core\Url. | ||||
| 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 | |||
| UnsupportedRouteAttributePropertiesTest | class | Drupal\Tests\Core\Routing | core/ |
Tests \Drupal\Core\Routing\AttributeRouteDiscovery. | ||||
| UnsupportedRouteAttributePropertyException | class | Drupal\Core\Routing | core/ |
Thrown when using unsupported route attribute properties. | 1 | |||
| UntrustedCallbackException | class | Drupal\Core\Security | core/ |
Exception thrown if a callback is untrusted. | 4 | |||
| UntrustedObject | class | Drupal\Tests\Core\Security | core/ |
Class representing untrusted callback. | ||||
| UnversionedAssetsTestHooks | class | Drupal\unversioned_assets_test\Hook | core/ |
Hook implementations for unversioned_assets_test. | ||||
| 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\Core\Database\Query | core/ |
General class for an abstracted UPDATE operation. | 2 | 4 | ||
| Update | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Update. | ||||
| Update | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Update. | ||||
| 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. |
Pagination
- Previous page
- Page 205
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.