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 |
---|---|---|---|---|---|---|---|---|
Covers | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 2 | |||
Covers | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a @covers tag in a Docblock. | 1 | |||
CoversClass | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
CoversClass | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 2 | |||
CoversDefaultClass | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 1 | |||
CoversFunction | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
CoversFunction | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 2 | |||
CoversHelper | class | PHPStan\Rules\PHPUnit | vendor/ |
|||||
CoversNothing | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
CoversNothing | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | ||||
CramMd5Authenticator | class | Symfony\Component\Mailer\Transport\Smtp\Auth | vendor/ |
Handles CRAM-MD5 authentication. | ||||
Crap4j | final class | PHPUnit\TextUI\XmlConfiguration\CodeCoverage\Report | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Crap4j | final class | SebastianBergmann\CodeCoverage\Report | vendor/ |
1 | ||||
CrapIndex | final class | SebastianBergmann\CodeCoverage\Node | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
Crawler | class | Symfony\Component\DomCrawler | vendor/ |
Crawler eases navigation of a list of \DOMNode objects. | 9 | |||
CrawlerAnySelectorTextContains | final class | Symfony\Component\DomCrawler\Test\Constraint | vendor/ |
|||||
CrawlerAnySelectorTextSame | final class | Symfony\Component\DomCrawler\Test\Constraint | vendor/ |
|||||
CrawlerSelectorAttributeValueSame | final class | Symfony\Component\DomCrawler\Test\Constraint | vendor/ |
|||||
CrawlerSelectorCount | final class | Symfony\Component\DomCrawler\Test\Constraint | vendor/ |
|||||
CrawlerSelectorExists | final class | Symfony\Component\DomCrawler\Test\Constraint | vendor/ |
|||||
CrawlerSelectorTextContains | final class | Symfony\Component\DomCrawler\Test\Constraint | vendor/ |
|||||
CrawlerSelectorTextSame | final class | Symfony\Component\DomCrawler\Test\Constraint | vendor/ |
|||||
Create | final class | GuzzleHttp\Promise | vendor/ |
|||||
CreatedItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'created' entity field type. | 1 | |||
CreateForEachBundle | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
Creates config entities for each bundle of a particular entity type. | ||||
CreateForEachBundleDeriver | final class | Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver | core/ |
Generates derivatives for the create_for_each_bundle config action. | 1 | |||
CreateNew | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 create_new image operation. | ||||
CreateProjectCommand | class | Composer\Command | vendor/ |
Install a package as new project into new directory. | ||||
CreateWidgetTypeCallbackSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\Objects | vendor/ |
|||||
CredentialForm | class | Drupal\migrate_drupal_ui\Form | core/ |
Migrate Upgrade database credential form. | 1 | |||
CriteriaViewRegistry | final class | OpenTelemetry\SDK\Metrics\View | vendor/ |
1 | ||||
CRLFAtTheEnd | class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
CRLFX2 | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
CRNoLF | class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
Cron | class | Drupal\Core | core/ |
The Drupal core Cron service. | ||||
Cron | class | Drupal\Core\ProxyClass | core/ |
Provides a proxy class for \Drupal\Core\Cron. | ||||
CronAccessCheck | class | Drupal\system\Access | core/ |
Access check for cron routes. | 2 | |||
CronController | class | Drupal\system | core/ |
Controller for Cron handling. | ||||
CronForm | class | Drupal\system\Form | core/ |
Configure cron settings for this site. | 1 | |||
CronInterface | interface | Drupal\Core | core/ |
An interface for running cron tasks. | 2 | 3 | ||
CroogoInstaller | class | Composer\Installers | vendor/ |
|||||
Crop | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Crop operation. | ||||
CropImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Crops an image resource. | 1 | |||
Crypt | class | Drupal\Component\Utility | core/ |
Utility class for cryptographically-secure string handling routines. | 57 | |||
CsrfAccessCheck | class | Drupal\Core\Access | core/ |
Access protection against CSRF attacks. | ||||
CsrfExceptionSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Handles exceptions related to CSRF access. | ||||
CsrfRequestHeaderAccessCheck | class | Drupal\Core\Access | core/ |
Access protection against CSRF attacks. | 1 | |||
CsrfTokenController | class | Drupal\system\Controller | core/ |
Returns responses for CSRF token routes. | ||||
CsrfTokenGenerator | class | Drupal\Core\Access | core/ |
Generates and validates CSRF tokens. | 7 | |||
CSS | class | PHP_CodeSniffer\Tokenizers | vendor/ |