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 1531
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ConfirmFormTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests confirmation forms. | ||||
| ConfirmFormTestForm | class | Drupal\form_test | core/ |
Provides a test confirmation form. | 1 | 1 | ||
| Connection | class | Drupal\dummydb\Driver\Database\dummydb | core/ |
DummyDB test implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\driver_test\Driver\Database\DriverTestMysql | core/ |
MySQL test implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\driver_test\Driver\Database\DriverTestMysqlDeprecatedVersion | core/ |
MySQL test implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\driver_test\Driver\Database\DriverTestPgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Connection. | 1 | 1 | ||
| Connection | class | Drupal\core_fake\Driver\Database\CoreFake | core/ |
CoreFake implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\Core\Database\Driver\CoreFake | core/ |
A connection for testing database drivers. | 1 | 1 | ||
| Connection | class | Drupal\Driver\Database\CoreFake | core/ |
A test implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\Driver\Database\fake | core/ |
A fake Connection class for testing purposes. | 3 | 3 | ||
| Connection | class | Drupal\mysqli\Driver\Database\mysqli | core/ |
MySQLi implementation of \Drupal\Core\Database\Connection. | ||||
| Connection | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Connection. | 4 | 8 | ||
| Connection | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Connection. | 6 | |||
| Connection | abstract class | Drupal\Core\Database | core/ |
Base Database API class. | 5 | 139 | 3 | |
| ConnectionFailureTest | class | Drupal\Tests\dblog\Kernel | core/ |
Tests logging of connection failures. | ||||
| ConnectionNotDefinedException | class | Drupal\Core\Database | core/ |
Exception thrown if an undefined database connection is requested. | 8 | |||
| ConnectionTest | class | Drupal\Tests\mysqli\Kernel\mysqli | core/ |
MySQL-specific connection tests. | ||||
| ConnectionTest | class | Drupal\Tests\Core\Database | core/ |
Tests the Connection class. | ||||
| ConnectionTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests of the core database system. | ||||
| ConnectionTest | class | Drupal\Tests\sqlite\Unit | core/ |
Tests Drupal\sqlite\Driver\Database\sqlite\Connection. | ||||
| ConnectionTest | class | Drupal\Tests\mysql\Unit | core/ |
Tests MySQL database connections. | ||||
| ConnectionTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
MySQL-specific connection tests. | 1 | 1 | ||
| ConnectionUnitTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
MySQL-specific connection unit tests. | 1 | 1 | ||
| ConnectionUnitTest | class | Drupal\Tests\mysqli\Kernel\mysqli | core/ |
MySQL-specific connection unit tests. | ||||
| ConnectionUnitTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
PostgreSQL-specific connection unit tests. | ||||
| ConsoleInputCollector | final class | Drupal\Core\Recipe | core/ |
Collects input values for recipes from the command line. | 1 | |||
| Constraint | class | Drupal\Core\Validation\Attribute | core/ |
Defines a Constraint attribute object. | 94 | |||
| Constraint | class | Drupal\Core\Validation\Annotation | core/ |
Defines a validation constraint annotation object. | ||||
| Constraint | class | Drupal\Component\Version | core/ |
A value object representing a Drupal version constraint. | 3 | |||
| ConstraintFactory | class | Drupal\Core\Validation | core/ |
Constraint plugin factory. | 1 | |||
| ConstraintFactoryTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests Drupal\Core\Validation\ConstraintFactory. | ||||
| ConstraintManager | class | Drupal\Core\Validation | core/ |
Constraint plugin manager. | 8 | 2 | ||
| ConstraintTest | class | Drupal\Tests\Component\Version | core/ |
Tests Drupal\Component\Version\Constraint. | ||||
| ConstraintValidatorFactory | class | Drupal\Core\Validation | core/ |
Defines a constraint validator factory that works with container injection. | 3 | |||
| ConstraintViolationBuilder | class | Drupal\Core\Validation | core/ |
A constraint violation builder for the basic Symfony validator. | ||||
| ContactCategory | class | Drupal\contact\Plugin\migrate\source | core/ |
Drupal 6/7 contact category source from database. | 1 | |||
| ContactCategoryTest | class | Drupal\Tests\contact\Kernel\Plugin\migrate\source | core/ |
Tests D6 contact category source plugin. | ||||
| ContactController | class | Drupal\contact\Controller | core/ |
Controller routines for contact routes. | ||||
| ContactFieldsTest | class | Drupal\Tests\contact\Kernel\Views | core/ |
Tests that no storage is created for the contact_message entity. | ||||
| ContactForm | class | Drupal\contact\Entity | core/ |
Defines the contact form entity. | 12 | |||
| ContactFormAccessControlHandler | class | Drupal\contact | core/ |
Defines the access control handler for the contact form entity type. | 1 | |||
| ContactFormEditForm | class | Drupal\contact | core/ |
Base form for contact form edit forms. | 1 | |||
| ContactFormHooks | class | Drupal\contact\Hook | core/ |
Form hook implementations for Contact module. | ||||
| ContactFormInterface | interface | Drupal\contact | core/ |
Provides an interface defining a contact form entity. | 1 | 5 | ||
| ContactFormJsonAnonTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Json Anon. | ||||
| ContactFormJsonBasicAuthTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Json Basic Auth. | ||||
| ContactFormJsonCookieTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Json Cookie. | ||||
| ContactFormListBuilder | class | Drupal\contact | core/ |
Defines a class to build a listing of contact form entities. | 1 |
Pagination
- Previous page
- Page 36
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.