Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ConfigurableLanguageJsonCookieTest | class | Drupal\Tests\language\Functional\Rest | core/ |
Tests Configurable Language Json Cookie. | ||||
| ConfigurableLanguageManager | class | Drupal\language | core/ |
Overrides default LanguageManager to provide configured languages. | 5 | |||
| ConfigurableLanguageManagerInterface | interface | Drupal\language | core/ |
Common interface for language negotiation services. | 1 | 16 | ||
| ConfigurableLanguageManagerSwitchLinksTest | class | Drupal\Tests\language\Unit | core/ |
Tests getting the language switch links works correctly running in fibers. | ||||
| ConfigurableLanguageManagerTest | class | Drupal\Tests\language\Kernel | core/ |
Tests the ConfigurableLanguage entity. | ||||
| ConfigurableLanguageManagerTest | class | Drupal\Tests\language\Functional | core/ |
Tests Language Negotiation. | ||||
| ConfigurableLanguageRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entities in a configured language. | ||||
| ConfigurableLanguageResourceTestBase | abstract class | Drupal\Tests\language\Functional\Rest | core/ |
Resource test base for ConfigurableLanguage entity. | 6 | |||
| ConfigurableLanguageTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "ConfigurableLanguage" config entity type. | ||||
| ConfigurableLanguageTest | class | Drupal\Tests\language\Kernel | core/ |
Tests the ConfigurableLanguage entity. | ||||
| ConfigurableLanguageUnitTest | class | Drupal\Tests\language\Unit | core/ |
Tests the ConfigurableLanguage entity class. | ||||
| ConfigurableLanguageValidationTest | class | Drupal\Tests\language\Kernel | core/ |
Tests validation of configurable_language entities. | ||||
| ConfigurableLanguageXmlAnonTest | class | Drupal\Tests\language\Functional\Rest | core/ |
Tests Configurable Language Xml Anon. | ||||
| ConfigurableLanguageXmlBasicAuthTest | class | Drupal\Tests\language\Functional\Rest | core/ |
Tests Configurable Language Xml Basic Auth. | ||||
| ConfigurableLanguageXmlCookieTest | class | Drupal\Tests\language\Functional\Rest | core/ |
Tests Configurable Language Xml Cookie. | ||||
| ConfigurablePlugin | class | Drupal\Tests\Core\Plugin | core/ |
Stub configurable plugin class for testing. | ||||
| ConfigurablePluginBase | abstract class | Drupal\Core\Plugin | core/ |
Base class for plugins that are configurable. | 8 | 8 | ||
| ConfigurablePluginBaseTest | class | Drupal\Tests\Core\Plugin | core/ |
Tests ConfigurablePluginBase. | ||||
| ConfigurablePluginBaseTestClass | class | Drupal\Tests\Core\Plugin | core/ |
Test class for ConfigurablePluginBase. | ||||
| 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 | |||
| ConfigurableTestClass | class | Drupal\Tests\Core\Plugin | core/ |
A test class using ConfigurablePluginTrait that can modify the de. | ||||
| ConfigurableTrait | trait | Drupal\Core\Plugin | core/ |
Implementation class for \Drupal\Component\Plugin\ConfigurableInterface. | 3 | |||
| ConfigurableTraitTest | class | Drupal\Tests\Core\Plugin | core/ |
Tests for ConfigurableTrait. | ||||
| Configuration | final class | Drupal\TestTools\TestRunner | core/ |
Helper class to manage run-tests.sh configuration. | ||||
| ConfigureBlockFormBase | abstract class | Drupal\layout_builder\Form | core/ |
Provides a base form for configuring a block. | 2 | |||
| ConfiguredTrait | class | Drupal\Tests\Core\Form | core/ |
Test class for testing ConfigFormBaseTrait. | ||||
| 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 | 1 | ||
| ConfigValidationTest | class | Drupal\Tests\config_test\Kernel | core/ |
Tests the UriHost validator. | ||||
| ConfigValidationTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Config Validation. | ||||
| ConfigValueException | class | Drupal\Core\Config | core/ |
Exception thrown when config object values are invalid. | 2 | |||
| 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. | 32 | 32 | ||
| ConfirmFormHelper | class | Drupal\Core\Form | core/ |
Provides common functionality to confirmation forms. | 3 | |||
| ConfirmFormHelperTest | class | Drupal\Tests\Core\Form | core/ |
Tests Drupal\Core\Form\ConfirmFormHelper. | ||||
| ConfirmFormInterface | interface | Drupal\Core\Form | core/ |
Defines the behavior a confirmation form. | 3 | 3 | ||
| 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. | 1 | |||
| 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 | abstract class | Drupal\Core\Database | core/ |
Base Database API class. | 5 | 150 | 3 | |
| Connection | class | Drupal\mysqli\Driver\Database\mysqli | core/ |
MySQLi implementation of \Drupal\Core\Database\Connection. | ||||
| 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 |
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.