Classes, traits, and interfaces - 11.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 |
---|---|---|---|---|---|---|---|---|
CounterTest | class | Drupal\Tests\views\Unit\Plugin\field | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\field\Counter @group views | ||||
CountryCodeConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
1 | ||||
CountryCodeConstraintTest | class | Drupal\Tests\Core\Validation\Plugin\Validation\Constraint | core/ |
@covers \Drupal\Core\Validation\Plugin\Validation\Constraint\CountryCodeConstraint @group validation | ||||
CountryManager | class | Drupal\Core\Locale | core/ |
Provides list of countries. | ||||
CountryManagerInterface | interface | Drupal\Core\Locale | core/ |
Defines a common interface for country managers. | 1 | 3 | ||
CountryManagerTest | class | Drupal\KernelTests\Core\Locale | core/ |
Tests Country Manager functionality. | ||||
CreatedItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'created' entity field type. | 1 | 2 | ||
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 | |||
CreateMigrationsTrait | trait | Drupal\Tests\migrate_drupal\Traits | core/ |
1 | ||||
CreateNew | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 create_new image operation. | ||||
CreateSampleEntityTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the ContentEntityStorageBase::createWithSampleValues method. | ||||
CreateTestContentEntitiesTrait | trait | Drupal\Tests\migrate_drupal\Traits | core/ |
Provides helper methods for creating test content. | 8 | |||
CredentialForm | class | Drupal\migrate_drupal_ui\Form | core/ |
Migrate Upgrade database credential form. | 1 | |||
CredentialFormTest | class | Drupal\Tests\migrate_drupal_ui\Functional | core/ |
Test the credential form for both Drupal 6 and Drupal 7 sources. | ||||
Cron | class | Drupal\Core\ProxyClass | core/ |
Provides a proxy class for \Drupal\Core\Cron. | ||||
Cron | class | Drupal\Core | core/ |
The Drupal core Cron service. | 2 | |||
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 | ||
CronQueueTest | class | Drupal\Tests\system\Kernel\System | core/ |
Tests the Cron Queue runner. | ||||
CronQueueTestDatabaseDelayException | class | Drupal\cron_queue_test\Plugin\QueueWorker | core/ |
A queue worker for testing cron exception handling. | 1 | |||
CronQueueTestDeriver | class | Drupal\cron_queue_test\Plugin\Derivative | core/ |
Provides a deriver for testing cron queues. | 1 | |||
CronQueueTestDeriverQueue | class | Drupal\cron_queue_test\Plugin\QueueWorker | core/ |
A queue worker for testing derivatives. | 1 | |||
CronQueueTestException | class | Drupal\cron_queue_test\Plugin\QueueWorker | core/ |
A queue worker for testing exceptions. | 1 | |||
CronQueueTestLeaseTime | class | Drupal\cron_queue_test\Plugin\QueueWorker | core/ |
A queue worker for testing lease time. | ||||
CronQueueTestMemoryDelayException | class | Drupal\cron_queue_test\Plugin\QueueWorker | core/ |
A queue worker for testing cron exception handling. | ||||
CronQueueTestRequeueException | class | Drupal\cron_queue_test\Plugin\QueueWorker | core/ |
A queue worker for testing re-queueing items. | 1 | |||
CronQueueTestSuspendQueue | class | Drupal\cron_queue_test\Plugin\QueueWorker | core/ |
A queue worker for testing suspending queue run. | 1 | |||
CronRunTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests cron runs. | ||||
CronRunTrait | trait | Drupal\Tests\Traits\Core | core/ |
Adds ability to run cron from tests. | 16 | |||
CronSuspendQueueDelayTest | final class | Drupal\Tests\Core\Cron | core/ |
Test Cron handling of suspended queues with a delay. | ||||
CronTest | class | Drupal\Tests\Core | core/ |
Tests the Cron class. | ||||
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. | 85 | |||
CryptTest | class | Drupal\Tests\Component\Utility | core/ |
Tests random byte generation. | ||||
CsrfAccessCheck | class | Drupal\Core\Access | core/ |
Access protection against CSRF attacks. | 1 | |||
CsrfAccessCheckTest | class | Drupal\Tests\Core\Access | core/ |
@coversDefaultClass \Drupal\Core\Access\CsrfAccessCheck @group Access | ||||
CsrfExceptionSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Handles exceptions related to CSRF access. | ||||
CsrfRequestHeaderAccessCheck | class | Drupal\Core\Access | core/ |
Access protection against CSRF attacks. | 1 | |||
CsrfRequestHeaderTest | class | Drupal\Tests\system\Functional | core/ |
Tests protecting routes by requiring CSRF token in the request header. | ||||
CsrfTokenController | class | Drupal\system\Controller | core/ |
Returns responses for CSRF token routes. | ||||
CsrfTokenGenerator | class | Drupal\Core\Access | core/ |
Generates and validates CSRF tokens. | 11 | |||
CsrfTokenGeneratorTest | class | Drupal\Tests\Core\Access | core/ |
Tests the CsrfTokenGenerator class. | ||||
CsrfTokenRaceTest | class | Drupal\FunctionalJavascriptTests\Core | core/ |
Test race condition for CSRF tokens for simultaneous requests. | ||||
CssAssetController | class | Drupal\system\Controller | core/ |
Defines a controller to serve CSS aggregates. | ||||
CssCollectionGrouper | class | Drupal\Core\Asset | core/ |
Groups CSS assets. | 1 | |||
CssCollectionGrouperUnitTest | class | Drupal\Tests\Core\Asset | core/ |
Tests the CSS asset collection grouper. |
Pagination
- Previous page
- Page 42
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.