Classes, traits, and interfaces - 10.3.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 |
|---|---|---|---|---|---|---|---|---|
| SqlContentEntityStorageTest | class | Drupal\Tests\Core\Entity\Sql | core/ |
@coversDefaultClass \Drupal\Core\Entity\Sql\SqlContentEntityStorage[[api-linebreak]] @group Entity | ||||
| SqlContentEntityStorageTestEntityInterface | abstract class | Drupal\Tests\Core\Entity\Sql | core/ |
Provides an entity with dummy implementations of static methods. | ||||
| SqlCountCache | class | Drupal\migrate_sql_count_cache_test\Plugin\migrate\source | core/ |
Source plugin for Sql count cache test. | ||||
| SqlDeprecationTest | class | Drupal\Tests\migrate\Kernel\Plugin\id_map | core/ |
Tests deprecation notice in Sql constructor. | ||||
| SqlEntityLoadingTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the loading of entities and entity revisions. | ||||
| SqlEntityStorageInterface | interface | Drupal\Core\Entity\Sql | core/ |
A common interface for SQL-based entity storage implementations. | 1 | 4 | ||
| SqlFieldableEntityTypeListenerTrait | trait | Drupal\Core\Entity\Sql | core/ |
Helper methods for EntityTypeListenerInterface. | ||||
| SqlIdMapTest | class | Drupal\Tests\migrate\Kernel\Plugin\id_map | core/ |
Defines a test SQL ID map for use in tests. | ||||
| SqliteCastedIntFieldJoinTest | class | Drupal\Tests\sqlite\Kernel\sqlite\Plugin\views | core/ |
Tests SQLite specific cast handling. | ||||
| SqliteDateSql | class | Drupal\views\Plugin\views\query | core/ |
SQLite-specific date handling. | 1 | 2 | ||
| SqliteDateSqlTest | class | Drupal\Tests\views\Unit\Plugin\views\query | core/ |
Tests the MySQL-specific date query handler. | ||||
| SqliteDriverLegacyTest | class | Drupal\Tests\sqlite\Kernel\sqlite | core/ |
Tests the deprecations of the SQLite database driver classes in Core. | ||||
| SqlModeTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests compatibility of the MySQL driver with various sql_mode options. | ||||
| SqlQueryTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the sql query plugin. | ||||
| SqlTest | class | Drupal\Tests\views\Unit\Plugin\query | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\query\Sql[[api-linebreak]] | ||||
| SqlTest | class | Drupal\Tests\migrate\Kernel\Plugin\id_map | core/ |
Tests that the migrate map table is created. | ||||
| SSH | class | Drupal\Core\FileTransfer | core/ |
The SSH connection class for the update module. | ||||
| Stable9LibraryOverrideTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests Stable 9's library overrides. | ||||
| Stable9TemplateOverrideTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests Stable 9's template overrides. | ||||
| StableLibraryOverrideTestBase | abstract class | Drupal\KernelTests\Core\Theme | core/ |
Tests the behavior of a theme when base_theme info key is missing. | 1 | |||
| StackedHttpKernel | class | Drupal\Core\StackMiddleware | core/ |
Provides a stacked HTTP kernel. | 2 | 2 | ||
| StackedKernelPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Provides a compiler pass for stacked HTTP kernels. | 2 | |||
| StackedKernelPassTest | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
@coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\StackedKernelPass[[api-linebreak]] @group DependencyInjection | ||||
| StackedRouteMatchInterface | interface | Drupal\Core\Routing | core/ |
Defines an interface for a stack of route matches. | 1 | 3 | ||
| StackedSessionHandlerPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Provides a compiler pass for stacked session save handlers. | 1 | |||
| StackItem | final class | Drupal\Core\Database\Transaction | core/ |
A value object for items on the transaction stack. | 1 | |||
| StackKernelIntegrationTest | class | Drupal\KernelTests\Core\HttpKernel | core/ |
Tests the stacked kernel functionality. | ||||
| StackSessionHandlerIntegrationTest | class | Drupal\Tests\system\Functional\Session | core/ |
Tests the stacked session handler functionality. | ||||
| Standard | class | Drupal\editor\EditorXssFilter | core/ |
Defines the standard text editor XSS filter. | 2 | |||
| Standard | class | Drupal\views\Plugin\views\join | core/ |
Default implementation of the join plugin. | ||||
| Standard | class | Drupal\views\Plugin\views\sort | core/ |
Default implementation of the base sort plugin. | ||||
| Standard | class | Drupal\views\Plugin\views\field | core/ |
Default implementation of the base field plugin. | ||||
| Standard | class | Drupal\views\Plugin\views\relationship | core/ |
Default implementation of the base relationship plugin. | ||||
| Standard | class | Drupal\views\Plugin\views\filter | core/ |
Default implementation of the base filter plugin. | 1 | |||
| Standard | class | Drupal\views\Plugin\views\wizard | core/ |
Standard Views wizard plugin. | ||||
| Standard | class | Drupal\views\Plugin\views\argument | core/ |
Default implementation of the base argument plugin. | ||||
| StandardInstallerTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests the interactive installer installing the standard profile. | ||||
| StandardJavascriptTest | class | Drupal\Tests\standard\FunctionalJavascript | core/ |
Tests Standard installation profile JavaScript expectations. | ||||
| StandardPerformanceTest | class | Drupal\Tests\standard\FunctionalJavascript | core/ |
Tests the performance of basic functionality in the standard profile. | ||||
| StandardRecipeInstallTest | class | Drupal\FunctionalTests\Core\Recipe | core/ |
Tests installing the Standard recipe via the installer. | ||||
| StandardRecipeTest | class | Drupal\FunctionalTests\Core\Recipe | core/ |
Tests Standard recipe installation expectations. | ||||
| StandardTest | class | Drupal\Tests\standard\Functional | core/ |
Tests Standard installation profile expectations. | 1 | 1 | ||
| StandardTest | class | Drupal\Tests\editor\Unit\EditorXssFilter | core/ |
@coversDefaultClass \Drupal\editor\EditorXssFilter\Standard[[api-linebreak]] @group editor | ||||
| StandardTestTrait | trait | Drupal\Tests\standard\Traits | core/ |
Provides a test method to test the Standard installation profile or recipe. | 2 | |||
| StarterKit | final class | Drupal\starterkit_theme | core/ |
|||||
| StarterKitInterface | interface | Drupal\Core\Theme | core/ |
Allows starter kits to interact with theme generation. | 1 | 2 | ||
| State | class | Drupal\Core\State | core/ |
Provides the state system using a key value store. | 7 | 2 | ||
| State | class | Drupal\workflows | core/ |
A value object representing a workflow state. | 9 | |||
| StateFileExistsTest | class | Drupal\Tests\migrate_drupal\Kernel | core/ |
Tests that core modules have a migrate_drupal.yml file as needed. | ||||
| StateFormatterTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
Test the state field formatter. |
Pagination
- Previous page
- Page 162
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.