Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ConfigurablePluginTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Tests configurable plugins. | ||||
ConfigurableSearchPluginBase | abstract class | Drupal\search\Plugin | core/ |
Provides a base implementation for a configurable Search plugin. | 2 | 3 | ||
ConfigurableSearchPluginInterface | interface | Drupal\search\Plugin | core/ |
Provides an interface for a configurable Search plugin. | 1 | |||
ConfigurationTest | class | Drupal\Tests\action\Functional | core/ |
Tests complex actions configuration. | ||||
ConfigureBlockFormBase | abstract class | Drupal\layout_builder\Form | core/ |
Provides a base form for configuring a block. | 2 | |||
ConfigureSectionForm | class | Drupal\layout_builder\Form | core/ |
Provides a form for configuring a layout section. | 1 | |||
ConfigValidation | class | Drupal\config_test | core/ |
Provides a collection of validation callbacks for testing purposes. | 1 | |||
ConfigValueException | class | Drupal\Core\Config | core/ |
Exception thrown when config object values are invalid. | 2 | |||
ConfirmClassyCopiesTest | class | Drupal\KernelTests\Core\Theme | core/ |
Confirms that theme assets copied from Classy have not been changed. | ||||
ConfirmDeleteMultiple | class | Drupal\comment\Form | core/ |
Provides the comment multiple delete confirmation form. | 1 | |||
ConfirmFormArrayPathTestForm | class | Drupal\form_test | core/ |
Provides a test confirmation form with a complex cancellation destination. | 1 | |||
ConfirmFormBase | abstract class | Drupal\Core\Form | core/ |
Provides a generic base class for a confirmation form. | 29 | 29 | ||
ConfirmFormHelper | class | Drupal\Core\Form | core/ |
Provides common functionality to confirmation forms. | 3 | |||
ConfirmFormHelperTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\ConfirmFormHelper @group Form | ||||
ConfirmFormInterface | interface | Drupal\Core\Form | core/ |
Defines the behavior a confirmation form. | 3 | 2 | ||
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\database_statement_monitoring_test\sqlite | core/ |
SQlite Connection class that can log executed queries. | ||||
Connection | class | Drupal\database_statement_monitoring_test\mysql | core/ |
MySQL Connection class that can log executed queries. | ||||
Connection | class | Drupal\database_statement_monitoring_test\pgsql | core/ |
PostgreSQL Connection class that can log executed queries. | ||||
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. | 3 | 3 | ||
Connection | class | Drupal\corefake\Driver\Database\corefake | core/ |
Corefake implementation of \Drupal\Core\Database\Connection. | ||||
Connection | class | Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses | core/ |
CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Connection. | ||||
Connection | class | Drupal\Core\Database\Driver\corefake | core/ |
1 | 1 | |||
Connection | class | Drupal\Driver\Database\corefake | core/ |
|||||
Connection | class | Drupal\Driver\Database\fake | core/ |
A fake Connection class for testing purposes. | 3 | 3 | ||
Connection | abstract class | Drupal\Core\Database | core/ |
Base Database API class. | 5 | 118 | 3 | |
Connection | in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module. |
class | Drupal\Core\Database\Driver\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Connection. | 1 | ||
Connection | in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module. |
class | Drupal\Core\Database\Driver\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Connection. | 1 | ||
Connection | in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. |
class | Drupal\Core\Database\Driver\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Connection. | 1 | ||
Connection | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Connection. | 4 | 7 | ||
Connection | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Connection. | 2 | 8 | ||
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. | 7 | |||
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\mysql\Unit | core/ |
Tests MySQL database connections. | ||||
ConnectionTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
MySQL-specific connection tests. | ||||
ConnectionTest | class | Drupal\Tests\sqlite\Unit | core/ |
@coversDefaultClass \Drupal\sqlite\Driver\Database\sqlite\Connection @group Database | ||||
ConnectionUnitTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
MySQL-specific connection unit tests. | ||||
ConnectionUnitTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
PostgreSQL-specific connection unit tests. | ||||
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. | ||||
ConstraintFactoryTest | class | Drupal\KernelTests\Core\Validation | core/ |
@coversDefaultClass \Drupal\Core\Validation\ConstraintFactory | ||||
ConstraintManager | class | Drupal\Core\Validation | core/ |
Constraint plugin manager. | 6 | 2 | ||
ConstraintsTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests various low level constrains provided by core. |
Pagination
- Previous page
- Page 31
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.