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 |
---|---|---|---|---|---|---|---|---|
PcovDriver | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
PcovNotAvailableException | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
|||||
PcreException | final class | phpDocumentor\Reflection\Exception | vendor/ |
1 | ||||
PcreException | class | Composer\Pcre | vendor/ |
1 | 1 | |||
PdoCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts PDO related classes to array representation. | ||||
PDOConnection | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite-specific implementation of a PDO connection. | ||||
PdoSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
Session handler using a PDO connection to read and write data. | ||||
PdoStore | class | Symfony\Component\Lock\Store | vendor/ |
PdoStore is a PersistingStoreInterface implementation using a PDO connection. | ||||
PEAR | class | vendor/ |
Base class for other PEAR classes. Provides rudimentary emulation of destructors. | 1 | ||||
PearRepository | @private |
class | Composer\Repository | vendor/ |
Builds list of package from PEAR channel. | |||
PEAR_Error | class | vendor/ |
Standard PEAR error class for PHP 4 | |||||
PEAR_ErrorStack | class | vendor/ |
Error Stack Implementation | |||||
PEAR_Exception | class | vendor/ |
Base PEAR_Exception Class | |||||
Peast | class | Peast | vendor/ |
Main class of Peast library. Every function of this class takes two arguments: | 1 | |||
Pecl | class | Drupal\Component\Uuid | core/ |
Generates a UUID using the PECL extension. | ||||
PeclUuidNameGenerator | class | Ramsey\Uuid\Generator | vendor/ |
PeclUuidNameGenerator generates strings of binary data from a namespace and a name, using ext-uuid | 1 | |||
PeclUuidRandomGenerator | class | Ramsey\Uuid\Generator | vendor/ |
PeclUuidRandomGenerator generates strings of random binary data using ext-uuid | 1 | |||
PeclUuidTimeGenerator | class | Ramsey\Uuid\Generator | vendor/ |
PeclUuidTimeGenerator generates strings of binary data for time-base UUIDs, using ext-uuid | 1 | |||
PeekableRequestRateLimiterInterface | interface | Symfony\Component\HttpFoundation\RateLimiter | vendor/ |
A request limiter which allows peeking ahead. | 1 | |||
PeerConfig | class | OpenTelemetry\API\Instrumentation\Configuration\General | vendor/ |
|||||
PendingUpdatesValidator | final class | Drupal\package_manager\Validator | core/ |
Validates that there are no pending database updates. | ||||
Percentage | class | Drupal\Core\Batch | core/ |
Helper methods for the batch system. | 1 | |||
Percentage | final class | SebastianBergmann\CodeCoverage\Util | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | 4 | |||
PerComponentEntityDisplay | class | Drupal\migrate\Plugin\migrate\destination | core/ |
This class imports one component of an entity display. | ||||
PerComponentEntityFormDisplay | class | Drupal\migrate\Plugin\migrate\destination | core/ |
This class imports one component of an entity form display. | ||||
Perforce | class | Composer\Util | vendor/ |
@author Matt Whittom <Matt.Whittom@veteransunited.com> | 2 | |||
PerforceDownloader | class | Composer\Downloader | vendor/ |
@author Matt Whittom <Matt.Whittom@veteransunited.com> | ||||
PerforceDriver | class | Composer\Repository\Vcs | vendor/ |
@author Matt Whittom <Matt.Whittom@veteransunited.com> | ||||
Performance | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
PerformanceController | class | Drupal\system\Controller | core/ |
Controller for performance admin. | ||||
PerformanceForm | class | Drupal\system\Form | core/ |
Configure performance settings for this site. | 1 | |||
PerformanceTestRecorder | class | Drupal\Core\Test | core/ |
Records the number of times specific events occur. | ||||
Permission | class | Drupal\user\Plugin\views\access | core/ |
Access plugin that provides permission-based access control. | ||||
PermissionAccessCheck | class | Drupal\user\Access | core/ |
Permission access check. | 2 | |||
PermissionChecker | class | Drupal\Core\Session | core/ |
Checks permissions for an account. | ||||
PermissionCheckerInterface | interface | Drupal\Core\Session | core/ |
Defines a permission checker interface. | 1 | |||
PermissionHandler | class | Drupal\user | core/ |
Provides the available permissions based on yml files. | 2 | |||
PermissionHandlerInterface | interface | Drupal\user | core/ |
Defines an interface to list available permissions. | 1 | 6 | ||
Permissions | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for user roles. | ||||
Permissions | class | Drupal\user\Plugin\views\field | core/ |
Field handler to provide a list of permissions. | ||||
Permissions | class | Drupal\content_moderation | core/ |
Defines a class for dynamic permissions based on transitions. | ||||
PermissionsHashGenerator | class | Drupal\Core\Session | core/ |
Generates and caches the permissions hash for a user. | ||||
PermissionsHashGeneratorInterface | interface | Drupal\Core\Session | core/ |
Defines the user permissions hash generator interface. | 1 | 1 | ||
PermissionsPerBundle | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | ||||
PermissionsPerBundleDeriver | final class | Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver | core/ |
@internal This API is experimental. | 1 | |||
PersistentDatabaseLockBackend | class | Drupal\Core\Lock | core/ |
Defines the persistent database lock backend. | ||||
PersistentDatabaseLockBackend | class | Drupal\Core\ProxyClass\Lock | core/ |
Provides a proxy class for \Drupal\Core\Lock\PersistentDatabaseLockBackend. | ||||
PersistingStoreInterface | interface | Symfony\Component\Lock | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | 7 | 7 | ||
PgSqlCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts pqsql resources to array representation. | ||||
PgsqlHooks | class | Drupal\pgsql\Hook | core/ |
Hook implementations for pgsql. |