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 |
---|---|---|---|---|---|---|---|---|
VariadicValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Yields a variadic argument's values from the request attributes. | 1 | |||
VariantBase | abstract class | Drupal\Core\Display | core/ |
Provides a base class for DisplayVariant plugins. | 2 | 2 | ||
VariantInterface | interface | Drupal\Core\Display | core/ |
Provides an interface for DisplayVariant plugins. | 3 | |||
VariantManager | class | Drupal\Core\Display | core/ |
Manages discovery of display variant plugins. | ||||
VariantTrait | trait | Ramsey\Uuid\Rfc4122 | vendor/ |
Provides common functionality for handling the variant, as defined by RFC 4122 | 2 | |||
VariationCache | class | Drupal\Core\Cache | core/ |
Wraps a regular cache backend to make it support cache contexts. | ||||
VariationCacheFactory | class | Drupal\Core\Cache | core/ |
Defines the variation cache factory. | ||||
VariationCacheFactoryInterface | interface | Drupal\Core\Cache | core/ |
An interface defining variation cache factory classes. | 1 | 2 | ||
VariationCacheInterface | interface | Drupal\Core\Cache | core/ |
Defines an interface for variation cache implementations. | 1 | 3 | 4 | |
VarLikeIdentifier | class | PhpParser\Node | vendor/ |
Represents a name that is written in source code with a leading dollar, but is not a proper variable. The leading dollar is not stored as part of the name. | 1 | |||
VarTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
9 | ||||
Var_ | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {var tag in a Docblock. | 2 | |||
VcsCapableDownloaderInterface | interface | Composer\Downloader | vendor/ |
VCS Capable Downloader interface. | 2 | 1 | ||
VcsDownloader | abstract class | Composer\Downloader | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 5 | |||
VcsDriver | abstract class | Composer\Repository\Vcs | vendor/ |
A driver implementation for driver with authentication interaction. | 8 | |||
VcsDriverInterface | interface | Composer\Repository\Vcs | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @internal | 1 | 1 | ||
VcsIgnoredFilterIterator | final class | Symfony\Component\Finder\Iterator | vendor/ |
@extends \FilterIterator<string, \SplFileInfo> | ||||
VcsRepository | class | Composer\Repository | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 2 | |||
VendorHardeningExcluder | final class | Drupal\package_manager\PathExcluder | core/ |
Excludes vendor hardening files from stage operations. | ||||
VendorHardeningPlugin | class | Drupal\Composer\Plugin\VendorHardening | composer/ |
A Composer plugin to clean out your project's vendor directory. | ||||
VerifyDeprecations | trait | Doctrine\Deprecations\PHPUnit | vendor/ |
|||||
Version | final class | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 10 | |||
Version | class | Composer\Platform | vendor/ |
@author Lars Strojny <lars@strojny.net> | 1 | |||
Version | final class | SebastianBergmann | vendor/ |
3 | ||||
Version | final class | SebastianBergmann\CodeCoverage | vendor/ |
2 | ||||
Version | class | PharIo\Version | vendor/ |
8 | ||||
Version | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {version tag in a Docblock. | 1 | |||
VersionBumper | class | Composer\Package\Version | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @internal | 2 | |||
VersionById | class | Drupal\jsonapi\Revisions | core/ |
Defines a revision ID implementation for entity revision ID values. | 2 | |||
VersionByRel | class | Drupal\jsonapi\Revisions | core/ |
Revision ID implementation for the default or latest revisions. | 1 | 2 | ||
VersionCacheInterface | interface | Composer\Repository | vendor/ |
|||||
VersionCheckCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
VersionComparisonOperator | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 7 | |||
VersionConstraint | interface | PharIo\Version | vendor/ |
2 | 5 | |||
VersionConstraintParser | class | PharIo\Version | vendor/ |
3 | ||||
VersionConstraintValue | class | PharIo\Version | vendor/ |
|||||
VersionControl | abstract class | PHP_CodeSniffer\Reports | vendor/ |
3 | ||||
VersionGuesser | class | Composer\Package\Version | vendor/ |
Try to guess the current version number based on different VCS configuration. | 6 | |||
VersionHistoryController | class | Drupal\Core\Entity\Controller | core/ |
Provides a controller showing revision history for an entity. | 1 | |||
VersionHistoryLocalTasks | class | Drupal\Core\Entity\Plugin\Derivative | core/ |
Provides version history local tasks for revisionable entities. | 1 | |||
VersionNegotiator | class | Drupal\jsonapi\Revisions | core/ |
Provides a version negotiator manager. | 2 | |||
VersionNegotiatorInterface | interface | Drupal\jsonapi\Revisions | core/ |
Defines the common interface for all version negotiators. | 2 | |||
VersionNotFoundException | class | Drupal\jsonapi\Revisions | core/ |
Used when a version ID is valid, but the requested version does not exist. | ||||
VersionNumber | class | PharIo\Version | vendor/ |
|||||
VersionParser | class | Composer\Package\Version | vendor/ |
34 | ||||
VersionParser | class | Composer\Semver | vendor/ |
Version parser. | 1 | 14 | ||
Versions | class | Composer\SelfUpdate | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 2 | |||
VersionSelector | class | Composer\Package\Version | vendor/ |
Selects the best possible version for a package | 7 | |||
VersionTrait | trait | Ramsey\Uuid\Rfc4122 | vendor/ |
Provides common functionality for handling the version, as defined by RFC 4122 | 1 | |||
VerticalTabs | class | Drupal\Core\Render\Element | core/ |
Provides a render element for vertical tabs in a form. |