Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| PermissionHandlerInterface | interface | Drupal\user | core/ |
Defines an interface to list available permissions. | 1 | 8 | ||
| PermissionHandlerTest | class | Drupal\Tests\user\Unit | core/ |
Tests the permission handler. | ||||
| Permissions | class | Drupal\user\Plugin\views\field | core/ |
Field handler to provide a list of permissions. | 1 | |||
| Permissions | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for user roles. | ||||
| Permissions | class | Drupal\content_moderation | core/ |
Defines a class for dynamic permissions based on transitions. | 1 | |||
| PermissionsHashGenerator | class | Drupal\Core\Session | core/ |
Generates and caches the permissions hash for a user. | 1 | 2 | ||
| PermissionsHashGeneratorInterface | interface | Drupal\Core\Session | core/ |
Defines the user permissions hash generator interface. | 1 | 1 | ||
| PermissionsHashGeneratorTest | class | Drupal\Tests\Core\Session | core/ |
Tests Drupal\Core\Session\PermissionsHashGenerator. | ||||
| PermissionsPerBundle | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | 1 | |||
| PermissionsPerBundleDeriver | final class | Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver | core/ |
@internal This API is experimental. | 2 | |||
| PermissionsPerBundleTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Permissions Per Bundle. | ||||
| PermissionsTest | class | Drupal\Tests\user\Unit\Plugin\views\field | core/ |
Tests Drupal\user\Plugin\views\field\Permissions. | ||||
| PermissionsTest | class | Drupal\Tests\system\Kernel | core/ |
Tests Permissions. | ||||
| PersistentDatabaseLockBackend | class | Drupal\Core\ProxyClass\Lock | core/ |
Provides a proxy class for \Drupal\Core\Lock\PersistentDatabaseLockBackend. | ||||
| PersistentDatabaseLockBackend | class | Drupal\Core\Lock | core/ |
Defines the persistent database lock backend. | 2 | |||
| PgsqlCastedIntFieldJoinTest | class | Drupal\Tests\pgsql\Kernel\pgsql\Plugin\views | core/ |
Tests PostgreSQL specific cast handling. | ||||
| PgsqlHooks | class | Drupal\pgsql\Hook | core/ |
Hook implementations for pgsql. | ||||
| PgsqlQueryFactory | class | Drupal\workspaces\EntityQuery | core/ |
Workspaces PostgreSQL-specific entity query implementation. | ||||
| PgsqlRequirements | class | Drupal\pgsql\Install\Requirements | core/ |
Install time requirements for the pgsql module. | 1 | |||
| PgsqlRequirementsHooks | class | Drupal\pgsql\Hook | core/ |
Hook implementations for pgsql module. | ||||
| PhoneField | class | Drupal\telephone\Plugin\migrate\field\d7 | core/ |
Migrate field plugin for Drupal 7 phone fields. | ||||
| Php | class | Drupal\Component\Uuid | core/ |
Generates a UUID v4 (RFC 4122 section 4.4) using PHP code. | 4 | 2 | ||
| PhpArrayContainer | class | Drupal\Component\DependencyInjection | core/ |
Provides a container optimized for Drupal's needs. | 1 | |||
| PhpArrayContainerTest | class | Drupal\Tests\Component\DependencyInjection | core/ |
Tests Drupal\Component\DependencyInjection\PhpArrayContainer. | ||||
| PhpArrayDumper | class | Drupal\Component\DependencyInjection\Dumper | core/ |
PhpArrayDumper dumps a service container as a PHP array. | 1 | |||
| PhpArrayDumperTest | class | Drupal\Tests\Component\DependencyInjection\Dumper | core/ |
Tests Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper. | ||||
| PhpassHashedPassword | class | Drupal\phpass\Password | core/ |
Legacy password hashing framework. | 1 | 1 | 2 | |
| PhpassHashedPasswordBase | abstract class | Drupal\Core\Password | core/ |
Legacy password hashing framework. | 1 | 1 | ||
| PhpassHashedPasswordLog2BoundariesDouble | class | Drupal\Tests\phpass\Unit | core/ |
Test double for test coverage of enforceLog2Boundaries(). | ||||
| PhpassHooks | class | Drupal\phpass\Hook | core/ |
Hook implementations for phpass. | ||||
| PhpBackend | class | Drupal\Core\Cache | core/ |
Defines a PHP cache implementation. | 2 | |||
| PhpBackendFactory | class | Drupal\Core\Cache | core/ |
Defines a PHP cache backend factory. | 2 | |||
| PhpBackendTest | class | Drupal\KernelTests\Core\Cache | core/ |
Unit test of the PHP cache backend using the generic cache unit test base. | ||||
| PhpExtensionsValidator | class | Drupal\package_manager\Validator | core/ |
Performs validation if certain PHP extensions are enabled. | 1 | |||
| PhpExtensionsValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Php Extensions Validator. | ||||
| PhpMail | class | Drupal\Core\Mail\Plugin\Mail | core/ |
Defines the default Drupal mail backend, using PHP's native mail() function. | 2 | 2 | ||
| PhpMailTest | class | Drupal\Tests\Core\Mail\Plugin\Mail | core/ |
Tests Drupal\Core\Mail\Plugin\Mail\PhpMail. | ||||
| PhpPassword | class | Drupal\Core\Password | core/ |
Secure PHP password hashing functions. | 6 | 4 | ||
| PhpPasswordArgon2idIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Argon2id specific integration tests for the PHP password hashing service. | ||||
| PhpPasswordBcryptIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Bcrypt specific integration tests for the PHP password hashing service. | ||||
| PhpPasswordDefaultIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Integration tests for the PHP password hashing service. | ||||
| PhpPasswordTest | class | Drupal\Tests\Core\Password | core/ |
Unit tests for password hashing API. | ||||
| PhpPasswordUnknownAlgorithmIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Integration tests for the PHP password hashing service. | ||||
| PhpRequirements | final class | Drupal\Core\Utility | core/ |
Provides an object for dynamically identifying the minimum supported PHP. | 6 | |||
| PhpRequirementsTest | class | Drupal\Tests\Core\Utility | core/ |
Tests the \Drupal\Core\Utility\PhpRequirements class. | ||||
| PhpRequirementTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests the output of PHP requirements on the status report. | ||||
| PhpSelection | class | Drupal\Core\Entity\Plugin\EntityReferenceSelection | core/ |
Defines an alternative to the default Entity Reference Selection plugin. | ||||
| PhpSerialize | class | Drupal\Component\Serialization | core/ |
Default serialization for serialized PHP. | 4 | 2 | ||
| PhpStorageFactory | class | Drupal\Core\PhpStorage | core/ |
Creates a php storage object. | 5 | |||
| PhpStorageFactoryTest | class | Drupal\Tests\system\Kernel\PhpStorage | core/ |
Tests the PHP storage factory. |
Pagination
- Previous page
- Page 151
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.