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 |
---|---|---|---|---|---|---|---|---|
Function_ | class | PhpParser\Node\Scalar\MagicConst | vendor/ |
|||||
Function_ | abstract class | Peast\Syntax\Node | vendor/ |
Abstract class for functions. | 3 | |||
Function_ | class | PhpParser\Node\Stmt | vendor/ |
4 | ||||
FundamentalCompatibilityConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
The fundamental compatibility constraint. | ||||
FundamentalCompatibilityConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Validates fundamental compatibility of CKEditor 5 with the given text format. | ||||
FundCommand | class | Composer\Command | vendor/ |
@author Nicolas Grekas <p@tchwork.com> @author Jordi Boggiano <j.boggiano@seld.be> | ||||
FutureInterface | interface | OpenTelemetry\SDK\Common\Future | vendor/ |
@template-covariant T | 2 | 13 | ||
GarbageCollectionDisabled | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
GarbageCollectionDisabledSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
GarbageCollectionEnabled | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
GarbageCollectionEnabledSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
GarbageCollectionHandler | final class | PHPUnit\Runner\GarbageCollection | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
GarbageCollectionTriggered | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
GarbageCollectionTriggeredSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
GarbageCollectorStatus | final class | PHPUnit\Event\Telemetry | vendor/ |
@psalm-immutable | ||||
GarbageCollectorStatusProvider | interface | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Gauge | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
|||||
Gauge | final class | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | ||||
Gauge | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
Gauge represents the type of a scalar metric that always exports the "current value" for every data point. It should be used for an "unknown" aggregation. A Gauge does not support different aggregation temporalities. Given… | 1 | |||
GaugeInterface | interface | OpenTelemetry\API\Metrics | vendor/ |
A synchronous instrument which can be used to record non-additive values. | 2 | 4 | ||
GDImageToolkitOperationBase | abstract class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
7 | ||||
GDToolkit | class | Drupal\system\Plugin\ImageToolkit | core/ |
Defines the GD2 toolkit for image manipulation within Drupal. | ||||
GenderNeutralCommentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Parses and verifies that comments use gender neutral language. | ||||
GeneralInstrumentationConfiguration | interface | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
2 | 2 | |||
GenerateAutoloadReferenceFile | final class | Drupal\Composer\Plugin\Scaffold | composer/ |
Generates an 'autoload.php' that includes the autoloader created by Composer. | ||||
GenerateConfigurationCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
GeneratedButton | class | Drupal\Core | core/ |
This class holds a <button> generated from the <button> route. | 1 | |||
GeneratedCodeInfo | class | Google\Protobuf\Internal | vendor/ |
Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files. | ||||
GeneratedConfig | final class | PHPStan\ExtensionInstaller | vendor/ |
This class is generated by phpstan/extension-installer. @internal | ||||
GeneratedLink | class | Drupal\Core | core/ |
Used to return generated links, along with associated cacheability metadata. | 2 | 1 | ||
GeneratedNoLink | class | Drupal\Core | core/ |
This class holds a <span> generated from the <nolink> route. | 1 | |||
GeneratedUrl | class | Drupal\Core | core/ |
Used to return generated URLs, along with associated bubbleable metadata. | 3 | |||
GenerateProxyClassApplication | class | Drupal\Core\Command | core/ |
Provides a console command to generate proxy classes. | 1 | |||
GenerateProxyClassCommand | class | Drupal\Core\Command | core/ |
Provides a console command to generate proxy classes. | ||||
GenerateTheme | class | Drupal\Core\Command | core/ |
Generates a new theme based on latest default markup. | ||||
Generator | final class | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
Generator | final class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Generator | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Generator | abstract class | PHP_CodeSniffer\Generators | vendor/ |
3 | ||||
GeneratorDumper | abstract class | Symfony\Component\Routing\Generator\Dumper | vendor/ |
GeneratorDumper is the base class for all built-in generator dumpers. | 1 | |||
GeneratorDumperInterface | interface | Symfony\Component\Routing\Generator\Dumper | vendor/ |
GeneratorDumperInterface is the interface that all generator dumper classes must implement. | 1 | 1 | ||
GeneratorNotInitializedException | class | Drupal\Core\Routing | core/ |
Class for exceptions thrown when the generator has not been initialized. | ||||
GeneratorNotSupportedException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Generic | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Parses a tag definition for a DocBlock. | 1 | |||
GenericArray | class | Ramsey\Collection | vendor/ |
`GenericArray` represents a standard array object. | ||||
GenericEvent | class | Symfony\Component\EventDispatcher | vendor/ |
Event encapsulation class. | ||||
GenericFileFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_default' formatter. | ||||
GenericMetadata | class | Symfony\Component\Validator\Mapping | vendor/ |
A generic container of {@link Constraint} objects. | 2 | 2 | ||
GenericNumberConverter | class | Ramsey\Uuid\Converter\Number | vendor/ |
GenericNumberConverter uses the provided calculator to convert decimal numbers to and from hexadecimal values | 2 | |||
GenericObjectType | final class | SebastianBergmann\Type | vendor/ |