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 |
---|---|---|---|---|---|---|---|---|
InstrumentationScopeVersionCriteria | final class | OpenTelemetry\SDK\Metrics\View\SelectionCriteria | vendor/ |
|||||
InstrumentationTrait | trait | OpenTelemetry\API\Instrumentation | vendor/ |
This trait in conjunction with the InstrumentationInterface is meant as a base for instrumentations for the OpenTelemetry API. Instrumentations need to implement the abstract methods of this trait (besides any instrumentation specific code) | ||||
InstrumentHandle | interface | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | 7 | |||
InstrumentNameCriteria | final class | OpenTelemetry\SDK\Metrics\View\SelectionCriteria | vendor/ |
|||||
InstrumentType | final class | OpenTelemetry\SDK\Metrics | vendor/ |
Instrument type. | 1 | |||
InstrumentTypeCriteria | final class | OpenTelemetry\SDK\Metrics\View\SelectionCriteria | vendor/ |
|||||
Int32Value | class | Google\Protobuf | vendor/ |
Wrapper message for `int32`. The JSON representation for `Int32Value` is JSON number. | ||||
Int64Value | class | Google\Protobuf | vendor/ |
Wrapper message for `int64`. The JSON representation for `Int64Value` is JSON string. | ||||
IntDataPoint | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
IntDataPoint is deprecated. Use integer value in NumberDataPoint. | ||||
Integer | final class | Ramsey\Uuid\Type | vendor/ |
A value object representing an integer | 19 | |||
Integer | class | phpDocumentor\Reflection\Types | vendor/ |
Value object representing Integer type | 3 | 8 | ||
IntegerData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The integer data type. | 2 | 1 | ||
IntegerFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'number_integer' formatter. | ||||
IntegerInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for integer numbers. | 1 | 4 | ||
IntegerItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'integer' field type. | ||||
IntegerOverflowException | class | Brick\Math\Exception | vendor/ |
Exception thrown when an integer overflow occurs. | 1 | |||
IntegerRange | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'int'. | 1 | |||
IntegerValue | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
@psalm-immutable | 1 | |||
IntegrationTestCase | abstract class | Twig\Test | vendor/ |
Integration test helper. | ||||
IntegrityConstraintViolationException | class | Drupal\Core\Database | core/ |
Exception thrown if a query would violate an integrity constraint. | 4 | |||
InterfaceMethodUnit | final class | SebastianBergmann\CodeUnit | vendor/ |
@psalm-immutable | ||||
InterfaceNameSniff | class | Drupal\Sniffs\Classes | vendor/ |
Checks that interface names end with "Interface". | ||||
InterfaceNameSuffixSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions | vendor/ |
|||||
InterfaceNotFoundException | class | Prophecy\Exception\Doubler | vendor/ |
2 | ||||
InterfaceString | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing the type 'string'. | 1 | |||
InterfaceUnit | final class | SebastianBergmann\CodeUnit | vendor/ |
@psalm-immutable | ||||
Interface_ | class | PhpParser\Node\Stmt | vendor/ |
5 | ||||
Interface_ | class | PhpParser\Builder | vendor/ |
|||||
InternalErrorException | class | Symfony\Component\CssSelector\Exception | vendor/ |
ParseException is thrown when a CSS selector syntax is not valid. | 2 | |||
InterpolatedString | class | PhpParser\Node\Scalar | vendor/ |
2 | ||||
InterpolatedStringPart | class | PhpParser\Node | vendor/ |
3 | ||||
Interpolator | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Injects config values from an associative array into a string. | 1 | |||
Intersection | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing a Compound Type. | 1 | |||
IntersectionType | final class | SebastianBergmann\Type | vendor/ |
|||||
IntersectionType | class | PhpParser\Node | vendor/ |
2 | ||||
IntersectionTypeNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
8 | ||||
Interval | class | Composer\Semver | vendor/ |
1 | ||||
Intervals | class | Composer\Semver | vendor/ |
Helper class generating intervals from constraints | 7 | |||
IntExemplar | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
IntExemplar is deprecated. Use Exemplar with as_int for value | ||||
IntGauge | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
IntGauge is deprecated. Use Gauge with an integer value in NumberDataPoint. | ||||
IntHistogram | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
IntHistogram is deprecated, replaced by Histogram points using double- valued exemplars. | ||||
IntHistogramDataPoint | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
IntHistogramDataPoint is deprecated; use HistogramDataPoint. | ||||
IntlCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
@author Nicolas Grekas <p@tchwork.com> @author Jan Schädlich <jan.schaedlich@sensiolabs.de> | ||||
IntroduceCacheDirectoryAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
IntroduceCoverageElement | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
IntSum | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
IntSum is deprecated. Use Sum with an integer value in NumberDataPoint. | ||||
Int_ | class | PhpParser\Node\Expr\Cast | vendor/ |
|||||
Int_ | class | PhpParser\Node\Scalar | vendor/ |
2 | ||||
InvalidApplicationNameException | class | PharIo\Manifest | vendor/ |
|||||
InvalidArgument | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\InvalidArgument class |