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 |
---|---|---|---|---|---|---|---|---|
ValidKeysConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the ValidKeys constraint. | ||||
ValidLogicalOperatorsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators | vendor/ |
|||||
ValidPathConstraint | class | Drupal\Core\Path\Plugin\Validation\Constraint | core/ |
Validation constraint for valid system paths. | ||||
ValidPathConstraintValidator | class | Drupal\Core\Path\Plugin\Validation\Constraint | core/ |
Constraint validator for validating system paths. | ||||
ValidReferenceConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Entity Reference valid reference constraint. | ||||
ValidReferenceConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if referenced entities are valid. | ||||
ValidValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Christian Flothmann <christian.flothmann@sensiolabs.de> | ||||
ValidVariableNameSniff | class | Drupal\Sniffs\NamingConventions | vendor/ |
\Drupal\Sniffs\NamingConventions\ValidVariableNameSniff. | ||||
ValidVariableNameSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions | vendor/ |
|||||
ValidVariableNameSniff | class | PHP_CodeSniffer\Standards\Zend\Sniffs\NamingConventions | vendor/ |
|||||
ValidVariableNameSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions | vendor/ |
|||||
Value | class | Google\Protobuf | vendor/ |
`Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an… | 1 | |||
Value | class | Drupal\Core\Render\Element | core/ |
Provides a form element for storage of internal information. | ||||
ValueAtQuantile | class | Opentelemetry\Proto\Metrics\V1\SummaryDataPoint | vendor/ |
Represents the value at a given quantile of a distribution. To record Min and Max values following conventions are used: | ||||
ValueExtractorTrait | trait | Ramsey\Collection\Tool | vendor/ |
Provides functionality to extract the value of a property or method from an object. | 1 | |||
ValueResolver | class | Symfony\Component\HttpKernel\Attribute | vendor/ |
Defines which value resolver should be used for a given parameter. | 5 | 1 | ||
ValueResolverInterface | interface | Symfony\Component\HttpKernel\Controller | vendor/ |
Responsible for resolving the value of an argument based on its metadata. | 16 | 19 | ||
Values | class | Symfony\Component\VarExporter\Internal | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
ValueToStringTrait | trait | Ramsey\Collection\Tool | vendor/ |
Provides functionality to express a value as string | 4 | |||
ValueTypes | interface | OpenTelemetry\SDK\Common\Configuration | vendor/ |
Environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK. | ||||
VanillaInstaller | class | Composer\Installers | vendor/ |
|||||
VarCloner | class | Symfony\Component\VarDumper\Cloner | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 9 | |||
VarDumper | class | Symfony\Component\VarDumper | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 3 | |||
VarDumperTestTrait | trait | Symfony\Component\VarDumper\Test | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
VarExporter | final class | Symfony\Component\VarExporter | vendor/ |
Exports serializable PHP values to PHP code. | 1 | |||
VarFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
Variable | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Variable | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Drupal 6/7 variable source from database. | 4 | 4 | ||
Variable | class | PhpParser\Node\Expr | vendor/ |
|||||
Variable | class | Drupal\Component\Utility | core/ |
Provides helpers for dealing with variables. | 6 | |||
Variable | class | Symfony\Component\DependencyInjection | vendor/ |
Represents a variable. | 1 | |||
VariableAnalysisSniff | class | VariableAnalysis\Sniffs\CodeAnalysis | vendor/ |
1 | 1 | |||
VariableAnalysisSniff | class | DrupalPractice\Sniffs\CodeAnalysis | vendor/ |
Checks for variable usage using the sirbrillig/phpcs-variable-analysis sniff. | ||||
VariableCollection | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
VariableCollectionIterator | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
VariableCommentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Parses and verifies class property doc comments. | ||||
VariableCommentSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting | vendor/ |
|||||
VariableDeclaration | class | Peast\Syntax\Node | vendor/ |
A node that represents a "var", "const" or "let" declaration. For example: var a = 1 | ||||
VariableDeclarator | class | Peast\Syntax\Node | vendor/ |
A node that represents a declaration in a VariableDeclaration node. For example "a=1" in: var a = 1 | ||||
VariableHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 5 | |||
VariableInfo | class | VariableAnalysis\Lib | vendor/ |
Holds details of a variable within a scope. | 2 | |||
VariableMultiRow | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Drupal 6/7 multiple variables source from database. | 1 | 1 | ||
VariableNameSniff | class | DrupalPractice\Sniffs\General | vendor/ |
Checks the usage of variable_get() in forms and the variable name. | ||||
Variables | interface | OpenTelemetry\SDK\Common\Configuration | vendor/ |
Environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK. | 18 | |||
VariableSetSanitizeSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
Check that variable_set() calls do not run check_plain() or other sanitization functions on the value. | ||||
VariableTranslation | class | Drupal\migrate_drupal\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n_variable source from database. | ||||
VariableTranslation | class | Drupal\migrate_drupal\Plugin\migrate\source\d7 | core/ |
Drupal 7 variable_store source from database. | ||||
VariableTypes | interface | OpenTelemetry\SDK\Common\Configuration | vendor/ |
|||||
VariadicExpression | class | Twig\Node\Expression | vendor/ |
1 | ||||
VariadicPlaceholder | class | PhpParser\Node | vendor/ |
Represents the "..." in "foo(...)" of the first-class callable syntax. | 7 |