Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
UnexpectedOutputPrinter | final class | PHPUnit\TextUI\Output\Default | vendor/ |
1 | ||||
UnexpectedParameters | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnexpectedParameters class | ||||
UnexpectedPropertyException | class | Symfony\Component\Serializer\Exception | vendor/ |
UnexpectedPropertyException. | 3 | |||
UnexpectedResponseException | class | Symfony\Component\Mailer\Exception | vendor/ |
2 | ||||
UnexpectedSessionUsageException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Mathias Arlaud <mathias.arlaud@gmail.com> | 1 | |||
UnexpectedTypeException | class | Symfony\Component\Validator\Exception | vendor/ |
1 | 86 | |||
UnexpectedTypeException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
|||||
UnexpectedValueException | class | Symfony\Component\HttpFoundation\Exception | vendor/ |
5 | 2 | |||
UnexpectedValueException | final class | Http\Adapter\Guzzle7\Exception | vendor/ |
1 | 1 | |||
UnexpectedValueException | class | Symfony\Component\Validator\Exception | vendor/ |
@author Christian Flothmann <christian.flothmann@sensiolabs.de> | 43 | |||
UnexpectedValueException | class | Doctrine\Instantiator\Exception | vendor/ |
Exception for given parameters causing invalid/unexpected state on instantiation | 1 | |||
UnexpectedValueException | class | Symfony\Component\Serializer\Exception | vendor/ |
UnexpectedValueException. | 5 | 11 | ||
UnexpectedValueException | class | Symfony\Component\BrowserKit\Exception | vendor/ |
1 | 1 | |||
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. | 34 | |||
UnicodeString | class | Symfony\Component\String | vendor/ |
Represents a string of Unicode grapheme clusters encoded as UTF-8. | 3 | |||
UnifiedDiffOutputBuilder | final class | SebastianBergmann\Diff\Output | vendor/ |
Builds a diff string representation in unified diff format in chunks. | 3 | |||
UninitializedStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents an uninitialized property. | ||||
UninstalledExtensionException | class | Drupal\Core\Extension\Exception | core/ |
Exception class thrown when a specified extension has not been installed. | ||||
UninstallOperation | class | Composer\DependencyResolver\Operation | vendor/ |
Solver uninstall operation. | 7 | |||
UnintentionallyCoveredCodeException | final class | SebastianBergmann\CodeCoverage | vendor/ |
4 | ||||
UninterpretedOption | class | Google\Protobuf\Internal | vendor/ |
A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects… | ||||
UnionType | class | PhpParser\Node | vendor/ |
2 | ||||
UnionType | final class | SebastianBergmann\Type | vendor/ |
|||||
UnionTypeHintFormatSniff | class | SlevomatCodingStandard\Sniffs\TypeHints | vendor/ |
|||||
UnionTypeNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
11 | ||||
Unique | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that all the elements of the given collection are unique. | ||||
UniqueFieldConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks if an entity field has a unique value. | 3 | 3 | ||
UniqueFieldValueValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates that a field is unique for the given entity type. | 1 | |||
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. | ||||
UniqueValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Yevgeniy Zholkevskiy <zhenya.zholkevskiy@gmail.com> | ||||
Unit | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
UnixPipes | class | Symfony\Component\Process\Pipes | vendor/ |
UnixPipes implementation uses unix pipes as handles. | 1 | |||
UnixTimeConverter | class | Ramsey\Uuid\Converter\Time | vendor/ |
UnixTimeConverter converts Unix Epoch timestamps to/from hexadecimal values consisting of milliseconds elapsed since the Unix Epoch | 1 | |||
UnixTimeGenerator | class | Ramsey\Uuid\Generator | vendor/ |
UnixTimeGenerator generates bytes that combine a 48-bit timestamp in milliseconds since the Unix Epoch with 80 random bits | 2 | |||
Unknown | final class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable | ||||
Unknown | final class | SebastianBergmann\CodeCoverage\Test\TestSize | vendor/ |
@psalm-immutable | ||||
Unknown | final class | SebastianBergmann\CodeCoverage\Test\TestStatus | vendor/ |
@psalm-immutable | ||||
Unknown | final class | PHPUnit\Framework\TestSize | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
UnknownCheckpointException | final class | Drupal\Core\Config\Checkpoint | core/ |
Thrown when trying to access a checkpoint that does not exist. | ||||
UnknownClassException | final class | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
UnknownClassOrInterfaceException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
UnknownCommand | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnknownCommand class | 1 | |||
UnknownError | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnknownError class | 1 | |||
UnknownEventException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
UnknownEventTypeException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
UnknownExtensionException | class | Drupal\Core\Extension\Exception | core/ |
Exception class thrown when a specified extension is not on the filesystem. | 9 |