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 |
|---|---|---|---|---|---|---|---|---|
| SchemaTest | class | Drupal\Tests\mysqli\Kernel\mysqli | core/ |
Tests schema API for the MySQL driver. | ||||
| SchemaTest | class | Drupal\Tests\pgsql\Unit | core/ |
Tests Drupal\pgsql\Driver\Database\pgsql\Schema. | ||||
| SchemaTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests schema API for the PostgreSQL driver. | ||||
| SchematicNormalizerFallbackTrait | trait | Drupal\serialization\Normalizer | core/ |
Trait for generating helpful schema-generation fallback messages. | 1 | |||
| SchematicNormalizerHelperTrait | trait | Drupal\serialization\Normalizer | core/ |
Methods for normalizing JSON schema. | ||||
| SchematicNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
Trait for normalizers which can also provide JSON Schema. | 5 | |||
| SchemaUniquePrefixedKeysIndexTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests adding UNIQUE keys to tables. | ||||
| 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. | ||||
| 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 | class | Drupal\Core\Ajax | core/ |
Provides an AJAX command for scrolling to the top of an element. | 1 | |||
| Search | class | Drupal\Core\Render\Element | core/ |
Provides an HTML5 input element with type of "search". | ||||
| Search | class | Drupal\search\Attribute | core/ |
Defines a Search type attribute for plugin discovery. | 6 | |||
| 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 | core/ |
Provides an interface for a HelpSection plugin that also supports search. | 2 | 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 | |||
| SearchBlockPageIdUpdatePathTest | class | Drupal\Tests\search\Functional\Update | core/ |
Tests update path for the search block's `page_id` setting from '' to NULL. | ||||
| 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 | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
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. | ||||
| SearchDateQueryAlterHooks | class | Drupal\search_date_query_alter\Hook | core/ |
Hook implementations for search_date_query_alter. | ||||
| SearchEmbeddedForm | class | Drupal\search_embedded_form\Form | core/ |
Form controller for search_embedded_form form. | 1 | |||
| SearchEmbeddedFormThemeHooks | class | Drupal\search_embedded_form\Hook | core/ |
Theme hook implementations for search_embedded_form module. | ||||
| SearchEmbedFormTest | class | Drupal\Tests\search\Functional | core/ |
Verifies that a form embedded in search results works. | ||||
| SearchEntityOperationsCacheabilityTest | class | Drupal\Tests\search\Kernel | core/ |
Tests cacheability added by entity operations. | ||||
| 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. | ||||
| SearchHelpHooks | class | Drupal\search_help\Hook | core/ |
Hook implementations for help. | ||||
| SearchHelpSearch | class | Drupal\search_help\Plugin\Search | core/ |
Handles searching for help using the Search module index. | 1 | |||
| SearchHooks | class | Drupal\search\Hook | core/ |
Hook implementations for search. | ||||
| SearchIndex | class | Drupal\search | core/ |
Provides search index management functions. | 2 | |||
| SearchIndexException | class | Drupal\search\Exception | core/ |
Exception thrown for search index errors. | 1 | |||
| SearchIndexingInterface | interface | Drupal\search\Plugin | core/ |
Defines an optional interface for SearchPlugin objects using an index. | 3 | 6 | ||
| SearchIndexInterface | interface | Drupal\search | core/ |
Provides search index management functions. | 1 | 8 | ||
| SearchIndexTest | class | Drupal\Tests\search\Kernel | core/ |
Tests the service "search.index". | ||||
| SearchIntegrationTest | class | Drupal\Tests\views\Functional | core/ |
Tests search integration filters. | ||||
| SearchInterface | interface | Drupal\search\Plugin | core/ |
Defines a common interface for all SearchPlugin objects. | 2 | 2 | 1 | |
| SearchKeywordsConditionsTest | class | Drupal\Tests\search\Functional | core/ |
Verify the search without keywords set and extra conditions. | ||||
| SearchLangcodeTestHooks | class | Drupal\search_langcode_test\Hook | core/ |
Hook implementations for search_langcode_test. |
Pagination
- Previous page
- Page 170
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.