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 |
---|---|---|---|---|---|---|---|---|
PgsqlQueryFactory | class | Drupal\workspaces\EntityQuery | core/ |
Workspaces PostgreSQL-specific entity query implementation. | 2 | |||
PharArchiver | class | Composer\Package\Archiver | vendor/ |
@author Till Klampaeckel <till@php.net> @author Nils Adermann <naderman@naderman.de> @author Matthieu Moquet <matthieu@moquet.net> | ||||
PharAutoloader | final class | PHPStan | vendor/ |
|||||
PharDownloader | class | Composer\Downloader | vendor/ |
Downloader for phar files | ||||
PharLoader | final class | PHPUnit\Runner\Extension | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
PhiftyInstaller | class | Composer\Installers | vendor/ |
|||||
PhoneField | class | Drupal\telephone\Plugin\migrate\field\d7 | core/ |
|||||
PHP | class | PHP_CodeSniffer\Tokenizers | vendor/ |
1 | 1 | |||
Php | final class | PHPUnit\TextUI\XmlConfiguration\CodeCoverage\Report | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Php | class | Drupal\Component\Uuid | core/ |
Generates a UUID v4 (RFC 4122 section 4.4) using PHP code. | ||||
PHP | final class | PHPUnit\Event\Runtime | vendor/ |
@psalm-immutable | ||||
PHP | final class | SebastianBergmann\CodeCoverage\Report | vendor/ |
1 | ||||
Php | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | |||
Php7 | class | PhpParser\Parser | vendor/ |
1 | ||||
Php8 | class | PhpParser\Parser | vendor/ |
1 | ||||
Php81GarbageCollectorStatusProvider | final class | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Php83GarbageCollectorStatusProvider | final class | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
PhpArrayContainer | class | Drupal\Component\DependencyInjection | core/ |
Provides a container optimized for Drupal's needs. | ||||
PhpArrayDumper | class | Drupal\Component\DependencyInjection\Dumper | core/ |
PhpArrayDumper dumps a service container as a PHP array. | ||||
PhpassHashedPassword | class | Drupal\phpass\Password | core/ |
Legacy password hashing framework. | 2 | |||
PhpassHashedPasswordBase | abstract class | Drupal\Core\Password | core/ |
Legacy password hashing framework. | 1 | 1 | ||
PhpassHooks | class | Drupal\phpass\Hook | core/ |
Hook implementations for phpass. | ||||
PhpBackend | class | Drupal\Core\Cache | core/ |
Defines a PHP cache implementation. | ||||
PhpBackendFactory | class | Drupal\Core\Cache | core/ |
|||||
PhpBBInstaller | class | Composer\Installers | vendor/ |
|||||
PhpBridgeSessionStorage | class | Symfony\Component\HttpFoundation\Session\Storage | vendor/ |
Allows session to be started by PHP and managed by Symfony. | ||||
PhpBridgeSessionStorageFactory | class | Symfony\Component\HttpFoundation\Session\Storage | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | ||||
PhpConfig | class | Composer\XdebugHandler | vendor/ |
@author John Stevenson <john-stevenson@blueyonder.co.uk> | ||||
PhpDeprecationTriggered | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 9 | |||
PhpDeprecationTriggeredSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | 4 | ||
PhpDocChildNode | interface | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
2 | 2 | |||
PhpDocNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
3 | ||||
PhpDocParser | class | PHPStan\PhpDocParser\Parser | vendor/ |
@phpstan-import-type ValueType from Doctrine\DoctrineArgument as DoctrineValueType | 2 | |||
PhpDocParserHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 2 | |||
PhpdocSingleLineVarFixer | class | PharIo\CSFixer | vendor/ |
Main implementation taken from kubawerlos/php-cs-fixer-customere-fixers Copyright (c) 2018 Kuba Werłos | ||||
PhpDocTagNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
21 | ||||
PhpDocTagValueNode | interface | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
29 | 5 | |||
PhpDocTextNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
2 | ||||
PhpDownloader | final class | PHPUnit\Util\Http | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
PhpDumper | class | Symfony\Component\DependencyInjection\Dumper | vendor/ |
PhpDumper dumps a service container as a PHP class. | 1 | |||
PhpElement | class | PharIo\Manifest | vendor/ |
|||||
PhpExecutableFinder | class | Symfony\Component\Process | vendor/ |
An executable finder specifically designed for the PHP executable. | 4 | |||
PhpExtensionRequirement | class | PharIo\Manifest | vendor/ |
|||||
PhpExtensionsValidator | class | Drupal\package_manager\Validator | core/ |
Performs validation if certain PHP extensions are enabled. | ||||
PhpFileCleaner | class | Composer\ClassMapGenerator | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @internal | ||||
PhpFileLoader | class | Symfony\Component\Routing\Loader | vendor/ |
PhpFileLoader loads routes from a PHP file. | 1 | 1 | ||
PhpFileLoader | class | Symfony\Component\DependencyInjection\Loader | vendor/ |
PhpFileLoader loads service definitions from a PHP file. | 1 | 5 | ||
PhpFileParser | class | Composer\ClassMapGenerator | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | ||||
PhpHandler | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
PhpIniAccessor | class | OpenTelemetry\SDK\Common\Configuration\Resolver | vendor/ |