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 |
|---|---|---|---|---|---|---|---|---|
| SchemaCheckTraitTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the functionality of SchemaCheckTrait. | ||||
| SchemaCompatibilityChecker | class | Drupal\Core\Theme\Component | core/ |
Checks whether two schemas are compatible. | 2 | 1 | ||
| SchemaCompatibilityCheckerTest | class | Drupal\Tests\Core\Theme\Component | core/ |
@coversDefaultClass \Drupal\Core\Theme\Component\SchemaCompatibilityChecker[[api-linebreak]] @group sdc | ||||
| 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 BrowserTestBase 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. | ||||
| SchemaException | class | Drupal\Core\Database | core/ |
Base exception for Schema-related errors. | 4 | 6 | ||
| SchemaIncompleteException | class | Drupal\Core\Config\Schema | core/ |
An exception thrown when a config schema is incomplete. | 9 | |||
| 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. | 1 | |||
| 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. | 5 | |||
| SchemaTableColumnSizeTooLargeException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown if a column size is too large on table creation. | 3 | |||
| SchemaTableKeyTooLargeException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown if a key is too large. | 3 | |||
| SchemaTest | class | Drupal\Tests\sqlite\Kernel\sqlite | core/ |
Tests schema API for the SQLite driver. | ||||
| 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. | ||||
| SchemaTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests schema API for the MySQL driver. | ||||
| SchemaUniquePrefixedKeysIndexTest | class | Drupal\Tests\sqlite\Kernel\sqlite | core/ |
Tests adding UNIQUE keys to tables. | ||||
| SchemaUniquePrefixedKeysIndexTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests adding UNIQUE keys to tables. | ||||
| SchemaUniquePrefixedKeysIndexTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests adding UNIQUE keys to tables. | ||||
| SchemaUniquePrefixedKeysIndexTestBase | abstract class | Drupal\KernelTests\Core\Database | core/ |
Tests adding UNIQUE keys to tables. | 3 | 3 | ||
| 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 | in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Ajax\ScrollTopCommand |
class | Drupal\views\Ajax | core/ |
Provides an AJAX command for scrolling to the top of an element. | |||
| ScrollTopCommand | class | Drupal\Core\Ajax | core/ |
Provides an AJAX command for scrolling to the top of an element. | 1 | 2 | ||
| Search | class | Drupal\search\Attribute | core/ |
Defines a Search type attribute for plugin discovery. | 5 | |||
| Search | class | Drupal\Core\Render\Element | core/ |
Provides an HTML5 input element with type of "search". | ||||
| 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. | ||||
| SearchableHelpInterface | interface | Drupal\help_topics | core/ |
Provides an interface for a HelpSection plugin that also supports search. | ||||
| SearchableHelpInterface | interface | Drupal\help | core/ |
Provides an interface for a HelpSection plugin that also supports search. | 3 | 4 | ||
| 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. | ||||
| SearchEmbeddedForm | class | Drupal\search_embedded_form\Form | core/ |
Form controller for search_embedded_form form. | 1 | |||
| SearchEmbedFormTest | class | Drupal\Tests\search\Functional | core/ |
Verifies that a form embedded in search results works. | ||||
| SearchExactTest | class | Drupal\Tests\search\Functional | core/ |
Tests that searching for a phrase gets the correct page count. | ||||
| SearchExcerptTest | class | Drupal\Tests\search\Kernel | core/ |
Tests the search_excerpt() function. | ||||
| SearchExtraTypeSearch | class | Drupal\search_extra_type\Plugin\Search | core/ |
Executes a dummy keyword search. |
Pagination
- Previous page
- Page 154
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.