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 |
|---|---|---|---|---|---|---|---|---|
| UndefinedLinkTemplateException | class | Drupal\Core\Entity\Exception | core/ |
Defines an exception class for undefined link templates. | 4 | |||
| UnformattedSummary | class | Drupal\views\Plugin\views\style | core/ |
The default style plugin for summaries. | ||||
| Unicode | class | Drupal\Component\Utility | core/ |
Provides Unicode-related conversions and operations. | 51 | |||
| UnicodeTest | class | Drupal\Tests\Component\Utility | core/ |
Test unicode handling features implemented in Unicode component. | ||||
| UnicornEditor | class | Drupal\editor_test\Plugin\Editor | core/ |
Defines a Unicorn-powered text editor for Drupal (for testing purposes). | ||||
| UninstallDefaultContentTest | class | Drupal\Tests\demo_umami_content\Functional | core/ |
Tests that uninstalling default content removes created content. | ||||
| UninstalledExtensionException | class | Drupal\Core\Extension\Exception | core/ |
Exception class thrown when a specified extension has not been installed. | ||||
| UninstallKernelTest | class | Drupal\Tests\system\Kernel\Installer | core/ |
Tests the uninstallation of modules. | ||||
| UninstallTest | class | Drupal\Tests\system\Functional\Module | core/ |
Tests the uninstallation of modules. | ||||
| UniqueFieldConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks if an entity field has a unique value. | 3 | 4 | ||
| UniqueFieldConstraintTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests the unique field value validation constraint. | ||||
| 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. | 729 | 729 | ||
| 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 |
Pagination
- Previous page
- Page 207
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.