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 |
|---|---|---|---|---|---|---|---|---|
| SortTest | class | Drupal\Tests\jsonapi\Unit\Query | core/ |
Tests Drupal\jsonapi\Query\Sort. | ||||
| SortTest | class | Drupal\Tests\CSpell | core/ |
Tests that the dictionary.txt file is properly sorted. | ||||
| SortTest | class | Drupal\Tests\PhpCs | core/ |
Tests that phpcs.xml.dist is properly sorted. | ||||
| SortTestConfigEntityWithWeight | class | Drupal\Tests\Core\Config\Entity | core/ |
Test entity class to test sorting. | ||||
| SortTranslationTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests sorting on translatable and not translatable fields. | ||||
| SourceEditing | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Source Editing plugin configuration. | 3 | 1 | ||
| SourceEditingEmptyElementTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\SourceEditing. | ||||
| SourceEditingPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\SourceEditing. | ||||
| SourceEditingPreventSelfXssConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
For disallowing Source Editing configuration that allows self-XSS. | ||||
| SourceEditingPreventSelfXssConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensures Source Editing cannot be configured to allow self-XSS. | ||||
| SourceEditingRedundantTagsConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
For disallowing Source Editing elements already supported by a plugin. | ||||
| SourceEditingRedundantTagsConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensures tags already available via plugin are not be added to Source Editing. | ||||
| SourceEditingTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\SourceEditing. | ||||
| SourceEditingTestBase | abstract class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Provides a base class for testing the source editing function. | 2 | |||
| SourceModuleTest | class | Drupal\Tests\migrate_drupal_ui\Kernel | core/ |
Tests source_module selection. | ||||
| SourcePluginBase | abstract class | Drupal\migrate\Plugin\migrate\source | core/ |
The base class for source plugins. | 8 | 10 | ||
| SourceProviderTest | class | Drupal\Tests\migrate_drupal_ui\Functional | core/ |
Tests that a missing source provider error message is displayed. | ||||
| SourceString | class | Drupal\locale | core/ |
Defines the locale source string object. | 3 | |||
| SpaceUsedTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the spaceUsed() function. | ||||
| SpecialAttributesRouteSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Provides a route subscriber which checks for invalid pattern variables. | 1 | 2 | ||
| SpecialAttributesRouteSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
Tests Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber. | ||||
| Sql | class | Drupal\views\Plugin\views\query | core/ |
Views query plugin for an SQL query. | 4 | |||
| Sql | class | Drupal\migrate\Plugin\migrate\id_map | core/ |
Defines the sql based ID map implementation. | 1 | 3 | ||
| SqlBase | abstract class | Drupal\migrate\Plugin\migrate\source | core/ |
Sources whose data may be fetched via a database connection. | 11 | 12 | ||
| SqlBase | abstract class | Drupal\views\Plugin\views\pager | core/ |
A common base class for sql based pager. | 3 | 2 | ||
| SqlBaseTest | class | Drupal\Tests\views\Unit\Plugin\pager | core/ |
Tests Drupal\views\Plugin\views\pager\SqlBase. | ||||
| SqlBaseTest | class | Drupal\Tests\migrate\Unit | core/ |
Tests the SqlBase class. | ||||
| SqlBaseTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the functionality of SqlBase. | ||||
| SqlContentEntityStorage | class | Drupal\Core\Entity\Sql | core/ |
A content entity database storage implementation. | 11 | 21 | ||
| SqlContentEntityStorageException | class | Drupal\Core\Entity\Sql | core/ |
Exception thrown when a SQL storage operation fails. | 1 | |||
| SqlContentEntityStorageSchema | class | Drupal\Core\Entity\Sql | core/ |
Defines a schema handler that supports revisionable, translatable entities. | 10 | 11 | ||
| SqlContentEntityStorageSchemaColumnTest | class | Drupal\Tests\field\Kernel\Entity\Update | core/ |
Tests that schema changes in fields with data are detected during updates. | ||||
| SqlContentEntityStorageSchemaTest | class | Drupal\Tests\Core\Entity\Sql | core/ |
Tests Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema. | ||||
| SqlContentEntityStorageSchemaTest | class | Drupal\KernelTests\Core\Entity\Sql | core/ |
Tests Sql Content Entity Storage Schema. | ||||
| SqlContentEntityStorageTest | class | Drupal\KernelTests\Core\Entity\Sql | core/ |
Tests that the deleteFromDedicatedTables() method only executes one DELETE query. | ||||
| SqlContentEntityStorageTest | class | Drupal\Tests\Core\Entity\Sql | core/ |
Tests Drupal\Core\Entity\Sql\SqlContentEntityStorage. | ||||
| SqlCountCache | class | Drupal\migrate_sql_count_cache_test\Plugin\migrate\source | core/ |
Source plugin for Sql count cache test. | 1 | |||
| 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 | 7 | ||
| 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. | ||||
| SqliteConnection | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite-specific implementation of a PDO connection. | 2 | |||
| SqliteDatabaseExcluder | class | Drupal\package_manager\PathExcluder | core/ |
Excludes SQLite database files from stage operations. | 1 | |||
| SqliteDatabaseExcluderTest | class | Drupal\Tests\package_manager\Kernel\PathExcluder | core/ |
Tests Sqlite Database Excluder. | ||||
| 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. | ||||
| SqliteHooks | class | Drupal\sqlite\Hook | core/ |
Hook implementations for sqlite. | ||||
| SqlModeTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests compatibility of the MySQL driver with various sql_mode options. | ||||
| SqlModeTest | class | Drupal\Tests\mysqli\Kernel\mysqli | core/ |
Tests compatibility of the MySQL driver with various sql_mode options. |
Pagination
- Previous page
- Page 178
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.