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 |
---|---|---|---|---|---|---|---|---|
UuidCaster | final class | Symfony\Component\VarDumper\Caster | vendor/ |
@author Grégoire Pineau <lyrixx@lyrixx.info> | ||||
UuidConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates a UUID. | ||||
UuidExceptionInterface | interface | Ramsey\Uuid\Exception | vendor/ |
12 | ||||
UuidFactory | class | Ramsey\Uuid | vendor/ |
1 | ||||
UuidFactoryInterface | interface | Ramsey\Uuid | vendor/ |
UuidFactoryInterface defines common functionality all `UuidFactory` instances must implement | 1 | |||
UuidInterface | interface | Ramsey\Uuid\Rfc4122 | vendor/ |
Also known as a Leach-Salz variant UUID, an RFC 4122 variant UUID is a universally unique identifier defined by RFC 4122 | 11 | 2 | ||
UuidInterface | interface | Drupal\Component\Uuid | core/ |
Interface for generating UUIDs. | 3 | 8 | ||
UuidInterface | interface | Ramsey\Uuid | vendor/ |
A UUID is a universally unique identifier adhering to an agreed-upon representation format and standard for generation | 3 | 17 | ||
UuidItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'uuid' entity field type. | ||||
UuidReferenceInterface | interface | Drupal\serialization\EntityResolver | core/ |
Interface for extracting UUID from entity reference data when denormalizing. | ||||
UuidResolver | class | Drupal\serialization\EntityResolver | core/ |
Resolves entities from data that contains an entity UUID. | 2 | |||
UuidV1 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Gregorian time, or version 1, UUIDs include timestamp, clock sequence, and node values that are combined into a 128-bit unsigned integer | 2 | |||
UuidV2 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
DCE Security version, or version 2, UUIDs include local domain identifier, local ID for the specified domain, and node values that are combined into a 128-bit unsigned integer | 2 | |||
UuidV3 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Version 3 UUIDs are named-based, using combination of a namespace and name that are hashed into a 128-bit unsigned integer using MD5 | ||||
UuidV4 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Random, or version 4, UUIDs are randomly or pseudo-randomly generated 128-bit integers | ||||
UuidV5 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Version 5 UUIDs are named-based, using combination of a namespace and name that are hashed into a 128-bit unsigned integer using SHA1 | ||||
UuidV6 | Use { |
class | Ramsey\Uuid\Nonstandard | vendor/ |
Reordered time, or version 6, UUIDs include timestamp, clock sequence, and node values that are combined into a 128-bit unsigned integer | 1 | 1 | |
UuidV6 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Reordered time, or version 6, UUIDs include timestamp, clock sequence, and node values that are combined into a 128-bit unsigned integer | 1 | |||
UuidV7 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Unix Epoch time, or version 7, UUIDs include a timestamp in milliseconds since the Unix Epoch, along with random bytes | ||||
UuidV8 | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Version 8, Custom UUIDs provide an RFC 4122 compatible format for experimental or vendor-specific uses | ||||
UuidValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether the value is a valid UUID (also known as GUID). | 1 | |||
UvDriver | final class | Revolt\EventLoop\Driver | vendor/ |
1 | ||||
Valid | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates an object embedded in an object's property. | 4 | |||
ValidateCommand | class | Composer\Command | vendor/ |
ValidateCommand | ||||
ValidateEnvPlaceholdersPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Validates environment variable placeholders used in extension configuration with dummy values. | ||||
ValidateRequestListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Validates Requests. | ||||
ValidatingArrayLoader | class | Composer\Package\Loader | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 4 | |||
Validation | final class | Symfony\Component\Validator | vendor/ |
Entry point for the Validator component. | 5 | |||
ValidationException | class | JsonSchema\Exception | vendor/ |
2 | ||||
ValidationFailedException | class | Symfony\Component\Validator\Exception | vendor/ |
@author Jan Vernieuwe <jan.vernieuwe@phpro.be> | 5 | |||
ValidationResult | final class | Drupal\package_manager | core/ |
A value object to contain the results of a validation. | 2 | |||
ValidationResult | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Validator | class | JsonSchema | vendor/ |
A JsonSchema Constraint | 10 | |||
Validator | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
Rfc4122\Validator validates strings as UUIDs of the RFC 4122 variant | ||||
Validator | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ValidatorBuilder | class | Symfony\Component\Validator | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
ValidatorDataCollector | class | Symfony\Component\Validator\DataCollector | vendor/ |
@author Maxime Steinhausser <maxime.steinhausser@gmail.com> | ||||
ValidatorException | class | Symfony\Component\Validator\Exception | vendor/ |
7 | 5 | |||
ValidatorInterface | interface | Symfony\Component\Validator\Validator | vendor/ |
Validates PHP values against constraints. | 3 | 18 | 2 | |
ValidatorInterface | interface | Ramsey\Uuid\Validator | vendor/ |
A validator validates a string as a proper UUID | 2 | 4 | ||
ValidClassNameSniff | class | Drupal\Sniffs\NamingConventions | vendor/ |
\Drupal\Sniffs\NamingConventions\ValidClassNameSniff. | ||||
ValidClassNameSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes | vendor/ |
|||||
ValidClassNameSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions | vendor/ |
|||||
ValidDefaultValueSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions | vendor/ |
|||||
ValidEmail | class | Egulias\EmailValidator\Result | vendor/ |
12 | ||||
ValidFunctionNameSniff | class | Drupal\Sniffs\NamingConventions | vendor/ |
\Drupal\Sniffs\NamingConventions\ValidFunctionNameSniff. | ||||
ValidFunctionNameSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions | vendor/ |
|||||
ValidFunctionNameSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions | vendor/ |
1 | 1 | |||
ValidGlobalSniff | class | Drupal\Sniffs\NamingConventions | vendor/ |
Ensures that global variables start with an underscore. | ||||
ValidKeysConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks that all the keys of a mapping are valid and required keys present. |