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 |
|---|---|---|---|---|---|---|---|---|
| SearchDeprecationTest | class | Drupal\Tests\search\Kernel | core/ |
Tests deprecated search methods. | ||||
| 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. | ||||
| 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. | 2 | 4 | ||
| SearchIndexInterface | interface | Drupal\search | core/ |
Provides search index management functions. | 1 | 6 | ||
| 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 | |||
| SearchKeywordsConditionsTest | class | Drupal\Tests\search\Functional | core/ |
Verify the search without keywords set and extra conditions. | ||||
| SearchLanguageTest | class | Drupal\Tests\search\Functional | core/ |
Tests advanced search with different languages added. | ||||
| SearchLocalTask | class | Drupal\search\Plugin\Derivative | core/ |
Provides local tasks for each search page. | 1 | |||
| SearchMatchTest | class | Drupal\Tests\search\Kernel | core/ |
Indexes content and queries it. | ||||
| SearchMultilingualEntityTest | class | Drupal\Tests\search\Functional | core/ |
Tests entities with multilingual fields. | ||||
| SearchMultilingualTest | class | Drupal\Tests\views\Functional | core/ |
Tests search integration filters with multilingual nodes. | ||||
| SearchNodeDiacriticsTest | class | Drupal\Tests\search\Functional | core/ |
Tests search functionality with diacritics. | ||||
| SearchNodePunctuationTest | class | Drupal\Tests\search\Functional | core/ |
Tests search functionality with punctuation and HTML entities. | ||||
| SearchNodeUpdateAndDeletionTest | class | Drupal\Tests\search\Functional | core/ |
Tests search index is updated properly when nodes are removed or updated. | ||||
| SearchNumberMatchingTest | class | Drupal\Tests\search\Functional | core/ |
Tests that numbers can be searched with more complex matching. | ||||
| SearchNumbersTest | class | Drupal\Tests\search\Functional | core/ |
Tests that numbers can be searched. | ||||
| SearchPage | class | Drupal\search\Entity | core/ |
Defines a configured search page. | 1 | 8 | ||
| SearchPage | class | Drupal\search\Plugin\migrate\source\d6 | core/ |
Drupal 6 node search rankings for core modules source from database. | ||||
| SearchPage | class | Drupal\search\Plugin\migrate\source\d7 | core/ |
Drupal 7 search active core modules and rankings source from database. | ||||
| SearchPageAccessControlHandler | class | Drupal\search | core/ |
Defines the access control handler for the search page entity type. | ||||
| SearchPageAddForm | class | Drupal\search\Form | core/ |
Provides a form for adding a search page. | ||||
| SearchPageCacheTagsTest | class | Drupal\Tests\search\Functional | core/ |
Tests the search_page entity cache tags on the search results pages. | ||||
| SearchPageEditForm | class | Drupal\search\Form | core/ |
Provides a form for editing a search page. | ||||
| SearchPageForm | class | Drupal\search\Form | core/ |
Provides a search form for site wide search. | 1 | |||
| SearchPageFormBase | abstract class | Drupal\search\Form | core/ |
Provides a base form for search pages. | 2 | |||
| SearchPageHalJsonAnonTest | class | Drupal\Tests\hal\Functional\search | core/ |
@group hal @group legacy | ||||
| SearchPageHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\search | core/ |
@group hal @group legacy | ||||
| SearchPageHalJsonCookieTest | class | Drupal\Tests\hal\Functional\search | core/ |
@group hal @group legacy | ||||
| SearchPageInterface | interface | Drupal\search | core/ |
Provides an interface defining a search page entity. | 1 | 4 | ||
| SearchPageJsonAnonTest | class | Drupal\Tests\search\Functional\Rest | core/ |
@group rest | ||||
| SearchPageJsonBasicAuthTest | class | Drupal\Tests\search\Functional\Rest | core/ |
@group rest | ||||
| SearchPageJsonCookieTest | class | Drupal\Tests\search\Functional\Rest | core/ |
@group rest | ||||
| SearchPageListBuilder | class | Drupal\search | core/ |
Defines a class to build a listing of search page entities. | ||||
| SearchPageOverrideTest | class | Drupal\Tests\search\Functional | core/ |
Tests if the result page can be overridden. | ||||
| SearchPageRepository | class | Drupal\search | core/ |
Provides a repository for Search Page config entities. | 1 | 2 | ||
| SearchPageRepositoryInterface | interface | Drupal\search | core/ |
Provides the interface for a repository Search Page entities. | 1 | 6 | ||
| SearchPageRepositoryTest | class | Drupal\Tests\search\Unit | core/ |
@coversDefaultClass \Drupal\search\SearchPageRepository[[api-linebreak]] @group search | ||||
| SearchPageResourceTestBase | abstract class | Drupal\Tests\search\Functional\Rest | core/ |
9 | 3 | |||
| SearchPageRoutes | class | Drupal\search\Routing | core/ |
Provides dynamic routes for search. | ||||
| SearchPageTest | class | Drupal\Tests\search\Kernel\Migrate\d6 | core/ |
Tests D6 search page source plugin. | ||||
| SearchPageTest | class | Drupal\Tests\search\Kernel\Migrate\d7 | core/ |
Tests D7 search page source plugin. | ||||
| SearchPageTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "SearchPage" config entity type. |
Pagination
- Previous page
- Page 147
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.