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 |
|---|---|---|---|---|---|---|---|---|
| Schema | class | Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses | core/ |
CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Schema. | ||||
| Schema | 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\Schema. | 1 | ||
| Schema | 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\Schema. | 1 | ||
| Schema | 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\Schema. | 1 | ||
| Schema | abstract class | Drupal\Core\Database | core/ |
Provides a base implementation for Database Schema. | 4 | 5 | ||
| Schema | class | Drupal\driver_test\Driver\Database\DrivertestMysql | core/ |
MySQL test implementation of \Drupal\Core\Database\Schema. | ||||
| Schema | class | Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion | core/ |
MySQL test implementation of \Drupal\Core\Database\Schema. | ||||
| Schema | class | Drupal\driver_test\Driver\Database\DrivertestPgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Schema. | ||||
| Schema | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Schema. | 2 | 3 | ||
| Schema | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Schema. | 1 | 1 | ||
| Schema | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Schema. | 3 | 3 | ||
| SchemaCheckTestTrait | trait | Drupal\Tests | core/ |
Provides a class for checking configuration schema. | 42 | |||
| SchemaCheckTrait | trait | Drupal\Core\Config\Schema | core/ |
Provides a trait for checking configuration schema. | 5 | |||
| SchemaCheckTraitTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the functionality of SchemaCheckTrait. | ||||
| SchemaConfigListenerTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the functionality of ConfigSchemaChecker in KernelTestBase tests. | ||||
| SchemaConfigListenerTest | class | Drupal\FunctionalTests\Core\Config | core/ |
Tests the functionality of ConfigSchemaChecker in KernelTestBase tests. | ||||
| SchemaConfigListenerTestTrait | trait | Drupal\Tests\Traits\Core\Config | core/ |
Adds a test for the configuration schema checker use in tests. | 2 | |||
| SchemaConfigListenerWebTest | class | Drupal\Tests\config\Functional | core/ |
Tests the functionality of ConfigSchemaChecker in BrowserTestBase tests. | ||||
| SchemaDeprecationTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests deprecated schema.inc functions. | ||||
| SchemaException | class | Drupal\Core\Database | core/ |
Base exception for Schema-related errors. | 2 | 4 | ||
| SchemaIncompleteException | class | Drupal\Core\Config\Schema | core/ |
An exception thrown when a config schema is incomplete. | 8 | |||
| SchemaInspector | class | Drupal\TestTools\Extension | core/ |
Provides methods to access modules' schema. | 2 | |||
| SchemaIntrospectionTestTrait | trait | Drupal\Tests\Core\Database | core/ |
Provides methods for testing database schema characteristics. | 2 | |||
| SchemaListenerController | class | Drupal\config_test | core/ |
Controller for testing \Drupal\Core\Config\Development\ConfigSchemaChecker. | ||||
| SchemaObjectDoesNotExistException | class | Drupal\Core\Database | core/ |
Exception thrown if an object being modified doesn't exist yet. | 4 | |||
| SchemaObjectExistsException | class | Drupal\Core\Database | core/ |
Exception thrown if an object being created already exists. | 6 | |||
| SchemaOrgDataConverter | class | Drupal\rdf | core/ |
|||||
| SchemaTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests schema API for the MySQL driver. | ||||
| SchemaTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests table creation and modification via the schema API. | ||||
| SchemaTest | class | Drupal\Tests\pgsql\Unit | core/ |
@coversDefaultClass \Drupal\pgsql\Driver\Database\pgsql\Schema[[api-linebreak]] @group Database | ||||
| SchemaTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests schema API for the PostgreSQL driver. | ||||
| SchemaVersionUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests that updates clean-up non-integer schema version. | ||||
| Score | class | Drupal\search\Plugin\views\sort | core/ |
Sort handler for sorting by search score. | ||||
| Score | class | Drupal\search\Plugin\views\field | core/ |
Field handler for search score. | ||||
| ScrollTopCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for scrolling to the top of an element. | 1 | |||
| Search | class | Drupal\search\Plugin\views\filter | core/ |
Filter handler for search keywords. | ||||
| Search | class | Drupal\search\Plugin\views\argument | core/ |
Argument handler for search keywords. | ||||
| Search | class | Drupal\Core\Render\Element | core/ |
Provides an HTML5 input element with type of "search". | ||||
| SearchableHelpInterface | interface | Drupal\help_topics | core/ |
Provides an interface for a HelpSection plugin that also supports search. | 2 | 3 | ||
| SearchAdminThemeTest | class | Drupal\Tests\search\Functional | core/ |
Verify the search results using administration theme for specific plugins. | ||||
| SearchAdvancedSearchFormTest | class | Drupal\Tests\search\Functional | core/ |
Indexes content and tests the advanced search form. | ||||
| SearchBlock | class | Drupal\search\Plugin\Block | core/ |
Provides a 'Search form' block. | ||||
| SearchBlockForm | class | Drupal\search\Form | core/ |
Builds the search form for the search block. | 1 | |||
| SearchBlockTest | class | Drupal\Tests\search\Functional | core/ |
Tests if the search form block is available. | ||||
| SearchCommentCountToggleTest | class | Drupal\Tests\search\Functional | core/ |
Tests that comment count display toggles properly on comment status of node. | ||||
| SearchCommentTest | class | Drupal\Tests\search\Functional | core/ |
Tests integration searching comments. | ||||
| SearchConfigSettingsFormTest | class | Drupal\Tests\search\Functional | core/ |
Verify the search config settings form. | ||||
| SearchConfigurationRankings | class | Drupal\search\Plugin\migrate\process | core/ |
Generate configuration rankings. | ||||
| SearchController | class | Drupal\search\Controller | core/ |
Route controller for search. | ||||
| SearchDateIntervalTest | class | Drupal\Tests\search\Functional | core/ |
Tests searching with date filters that exclude some translations. |
Pagination
- Previous page
- Page 146
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.