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 |
---|---|---|---|---|---|---|---|---|
ProcessSignaledException | final class | Symfony\Component\Process\Exception | vendor/ |
Exception that is thrown when a process has been signaled. | 2 | |||
ProcessStartFailedException | class | Symfony\Component\Process\Exception | vendor/ |
Exception for processes failed during startup. | 1 | |||
ProcessStream | final class | Symfony\Component\Mailer\Transport\Smtp\Stream | vendor/ |
A stream supporting local processes. | 1 | |||
ProcessTimedOutException | class | Symfony\Component\Process\Exception | vendor/ |
Exception that is thrown when a process times out. | 2 | |||
ProcessUtils | class | Symfony\Component\Process | vendor/ |
ProcessUtils is a bunch of utility methods. | ||||
ProcessWireInstaller | class | Composer\Installers | vendor/ |
|||||
Profile | final class | Twig\Profiler | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 6 | |||
Profile | class | Symfony\Component\HttpKernel\Profiler | vendor/ |
Profile. | 1 | |||
ProfileExtensionList | class | Drupal\Core\Extension | core/ |
Provides a list of installation profiles. | 2 | |||
ProfileField | class | Drupal\user\Plugin\migrate\source | core/ |
Drupal 6/7 profile field source from database. | 2 | 2 | ||
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. | ||||
ProfileFieldSettings | class | Drupal\user\Plugin\migrate\process | core/ |
|||||
ProfileFieldTranslation | class | Drupal\config_translation\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n strings profile field source from database. | ||||
ProfileFieldValues | class | Drupal\user\Plugin\migrate\source\d6 | core/ |
Drupal 6 profile fields values source from database. | ||||
ProfileForm | class | Drupal\user | core/ |
Form handler for the profile forms. | 1 | |||
Profiler | class | Symfony\Component\HttpKernel\Profiler | vendor/ |
Profiler. | 1 | |||
ProfilerExtension | class | Twig\Extension | vendor/ |
|||||
ProfilerListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
ProfilerListener collects data for the current request by listening to the kernel events. | ||||
ProfilerNodeVisitor | final class | Twig\Profiler\NodeVisitor | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
ProfilerStorageInterface | interface | Symfony\Component\HttpKernel\Profiler | vendor/ |
ProfilerStorageInterface. | 1 | |||
ProfileTranslationHandler | class | Drupal\user | core/ |
Defines the translation handler for users. | 1 | |||
ProfileValues | class | Drupal\user\Plugin\migrate | core/ |
Plugin class for user migrations dealing with profile values. | 1 | |||
Program | class | Peast\Syntax\Node | vendor/ |
Root node for scripts and modules. | ||||
ProgressBar | final class | Symfony\Component\Console\Helper | vendor/ |
The ProgressBar provides helpers to display progress output. | 4 | |||
ProgressIndicator | class | Symfony\Component\Console\Helper | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | ||||
ProgressPrinter | final class | PHPUnit\TextUI\Output\Default\ProgressPrinter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ProhibitsCommand | class | Composer\Command | vendor/ |
@author Niels Keurentjes <niels.keurentjes@omines.com> | ||||
Project | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
Project | interface | phpDocumentor\Reflection | vendor/ |
Interface for project. Since the definition of a project can be different per factory this interface will be small. | ||||
Project | class | DrupalPractice | vendor/ |
Helper class to retrieve project information like module/theme name for a file. | 14 | |||
ProjectCoreCompatibility | final class | Drupal\update | core/ |
Utility class to set core compatibility messages for project releases. | 1 | |||
ProjectFactory | interface | phpDocumentor\Reflection | vendor/ |
Interface for project factories. A project factory shall convert a set of files into an object implementing the Project interface. | ||||
ProjectInfo | class | Drupal\Core\Utility | core/ |
Performs operations on drupal.org project data. | 3 | |||
ProjectInfo | final class | Drupal\package_manager | core/ |
Defines a class for retrieving project information from Update module. | 1 | |||
ProjectInstaller | class | Composer\Installer | vendor/ |
Project Installer is used to install a single package into a directory as root project. | 1 | |||
ProjectRelease | final class | Drupal\update | core/ |
Provides a project release value object. | 4 | |||
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 | |||
Promise | final class | Http\Adapter\Guzzle7 | vendor/ |
Wrapper around Guzzle promises. | ||||
Promise | interface | Http\Promise | vendor/ |
Promise represents a value that may not be available yet, but will be resolved at some point in future. It acts like a proxy to the actual value. | 5 | 4 | ||
Promise | class | GuzzleHttp\Promise | vendor/ |
Promises/A+ implementation that avoids recursion when possible. | 2 | |||
Promise | final class | React\Promise | vendor/ |
@template T @template-implements PromiseInterface<T> | 3 | |||
PromiseInterface | interface | Prophecy\Promise | vendor/ |
Promise interface. Promises are logical blocks, tied to `will...` keyword. | 4 | |||
PromiseInterface | interface | GuzzleHttp\Promise | vendor/ |
A promise represents the eventual result of an asynchronous operation. | 4 | 16 | ||
PromiseInterface | interface | React\Promise | vendor/ |
@template-covariant T | 3 | 31 | ||
PromisorInterface | interface | GuzzleHttp\Promise | vendor/ |
Interface used with classes that return a promise. | 2 | 1 | ||
PromoteNode | class | Drupal\node\Plugin\Action | core/ |
Promotes a node. | ||||
PropagationGetterInterface | interface | OpenTelemetry\Context\Propagation | vendor/ |
2 | 3 | |||
PropagationSetterInterface | interface | OpenTelemetry\Context\Propagation | vendor/ |
1 | 3 |