Classes, traits, and interfaces - 10.3.x - 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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ProfileField | class | Drupal\user\Plugin\migrate\source | core/ |
Drupal 6/7 profile field source from database. | 2 | 2 | ||
| ProfileFieldCheckRequirementsTest | class | Drupal\Tests\user\Kernel\Migrate\d6 | core/ |
Tests check requirements for profile_field source plugin. | ||||
| ProfileFieldCheckRequirementsTest | class | Drupal\Tests\user\Kernel\Migrate\d7 | core/ |
Tests check requirements for profile_field source plugin. | ||||
| ProfileFieldOptionTranslation | class | Drupal\user\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n profile field option labels source from database. | ||||
| ProfileFieldOptionTranslation | class | Drupal\user\Plugin\migrate\process\d6 | core/ |
Determines the settings property and translation. | ||||
| ProfileFieldOptionTranslationTest | class | Drupal\Tests\user\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the field option translation source plugin. | ||||
| ProfileFieldSettings | class | Drupal\user\Plugin\migrate\process | core/ |
#[MigrateProcess('profile_field_settings')] | ||||
| ProfileFieldTest | class | Drupal\Tests\user\Kernel\Plugin\migrate\source | core/ |
Tests the profile_field source plugin. | 1 | 1 | ||
| ProfileFieldTranslation | class | Drupal\config_translation\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n strings profile field source from database. | ||||
| ProfileFieldTranslationTest | class | Drupal\Tests\config_translation\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the i18nProfileField source plugin. | ||||
| ProfileFieldValues | class | Drupal\user\Plugin\migrate\source\d6 | core/ |
Drupal 6 profile fields values source from database. | ||||
| ProfileFieldValuesTest | class | Drupal\Tests\user\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the d6_profile_field_values source plugin. | ||||
| ProfileForm | class | Drupal\user | core/ |
Form handler for the profile forms. | ||||
| ProfileTranslationHandler | class | Drupal\user | core/ |
Defines the translation handler for users. | ||||
| ProfileValues | class | Drupal\user\Plugin\migrate | core/ |
Plugin class for user migrations dealing with profile values. | 1 | |||
| ProgrammaticTest | class | Drupal\Tests\system\Kernel\Form | core/ |
Tests the programmatic form submission behavior. | ||||
| ProjectCoreCompatibility | final class | Drupal\update | core/ |
Utility class to set core compatibility messages for project releases. | 2 | |||
| ProjectCoreCompatibilityTest | class | Drupal\Tests\update\Unit | core/ |
@coversDefaultClass \Drupal\update\ProjectCoreCompatibility[[api-linebreak]] | ||||
| ProjectInfo | class | Drupal\Core\Utility | core/ |
Performs operations on drupal.org project data. | 4 | |||
| ProjectRelease | final class | Drupal\update | core/ |
Provides a project release value object. | 4 | |||
| ProjectReleaseTest | class | Drupal\Tests\update\Unit | core/ |
@coversDefaultClass \Drupal\update\ProjectRelease[[api-linebreak]] | ||||
| ProjectSecurityData | final class | Drupal\update | core/ |
Calculates a project's security coverage information. | 1 | |||
| ProjectSecurityRequirement | final class | Drupal\update | core/ |
Class for generating a project's security requirement. | 1 | |||
| PromoteNode | class | Drupal\node\Plugin\Action | core/ |
Promotes a node. | ||||
| ProtectedDirectory | class | Drupal\Core\File | core/ |
A value object representing a protected directory. | ||||
| ProtectedUserFieldConstraint | class | Drupal\user\Plugin\Validation\Constraint | core/ |
Checks if the plain text password is provided for editing a protected field. | 1 | |||
| ProtectedUserFieldConstraintValidator | class | Drupal\user\Plugin\Validation\Constraint | core/ |
Validates the ProtectedUserFieldConstraint constraint. | 1 | |||
| ProtectedUserFieldConstraintValidatorTest | class | Drupal\Tests\user\Unit\Plugin\Validation\Constraint | core/ |
@coversDefaultClass \Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraintValidator[[api-linebreak]] @group user | ||||
| ProtocolVersionCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the ProtocolVersionCacheContext service, for "per protocol" caching. | 1 | 2 | ||
| ProtocolVersionCacheContextTest | class | Drupal\Tests\Core\Cache\Context | core/ |
@coversDefaultClass \Drupal\Core\Cache\Context\ProtocolVersionCacheContext[[api-linebreak]] @group Cache | ||||
| Provider | class | Drupal\media\OEmbed | core/ |
Value object for oEmbed providers. | 5 | |||
| ProviderException | class | Drupal\media\OEmbed | core/ |
Exception thrown if an oEmbed provider causes an error. | 3 | |||
| ProviderFilterDecorator | class | Drupal\migrate\Plugin\Discovery | core/ |
Remove plugin definitions with non-existing providers. | 2 | |||
| ProviderRepository | class | Drupal\media\OEmbed | core/ |
Retrieves and caches information about oEmbed providers. | 1 | 2 | 2 | |
| ProviderRepository | class | Drupal\media_test_oembed | core/ |
Overrides the oEmbed provider repository service for testing purposes. | ||||
| ProviderRepositoryInterface | interface | Drupal\media\OEmbed | core/ |
Defines an interface for a collection of oEmbed provider information. | 1 | |||
| ProviderRepositoryTest | class | Drupal\Tests\media\Unit | core/ |
@coversDefaultClass \Drupal\media\OEmbed\ProviderRepository[[api-linebreak]] | ||||
| ProviderRepositoryTest | class | Drupal\Tests\media\Kernel | core/ |
Tests the oEmbed provider repository. | ||||
| ProxyBuilder | class | Drupal\Component\ProxyBuilder | core/ |
Generates the string representation of the proxy service. | 1 | 5 | ||
| ProxyBuilder | class | Drupal\Core\ProxyBuilder | core/ |
Extend the component proxy builder by using the DependencySerializationTrait. | 2 | |||
| ProxyBuilderTest | class | Drupal\Tests\Core\ProxyBuilder | core/ |
@coversDefaultClass \Drupal\Core\ProxyBuilder\ProxyBuilder[[api-linebreak]] @group proxy_builder | ||||
| ProxyBuilderTest | class | Drupal\Tests\Component\ProxyBuilder | core/ |
@coversDefaultClass \Drupal\Component\ProxyBuilder\ProxyBuilder[[api-linebreak]] @group proxy_builder | ||||
| ProxyServicesPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Replaces all services with a lazy flag. | 2 | |||
| ProxyServicesPassTest | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
@coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass[[api-linebreak]] @group DependencyInjection | ||||
| Psr7RequestValueResolver | final class | Drupal\Core\Controller\ArgumentResolver | core/ |
Yields a PSR7 request object based on the request object passed along. | 2 | |||
| PsrResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber for handling PSR-7 responses. | 1 | 2 | ||
| PsrResponseSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\PsrResponseSubscriber[[api-linebreak]] @group EventSubscriber | ||||
| PublicStream | class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal public (public://) stream wrapper class. | 2 | 20 | 2 | |
| PublishAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Publishes an entity. | 1 | 2 | ||
| PublishActionTest | class | Drupal\KernelTests\Core\Action | core/ |
@group Action |
Pagination
- Previous page
- Page 141
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.