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 |
|---|---|---|---|---|---|---|---|---|
| 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 | 1 | ||
| 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 | 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 | 12 | ||
| 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 | |||
| 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. | 2 | 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/ |
Base class for Search page tests. | 6 | |||
| 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. | ||||
| SearchPageTextTest | class | Drupal\Tests\search\Functional | core/ |
Tests the search help text and search page text. | ||||
| SearchPageValidationTest | class | Drupal\Tests\search\Kernel | core/ |
Tests validation of search_page entities. | ||||
| SearchPageXmlAnonTest | class | Drupal\Tests\search\Functional\Rest | core/ |
@group rest | ||||
| SearchPageXmlBasicAuthTest | class | Drupal\Tests\search\Functional\Rest | core/ |
@group rest | ||||
| SearchPageXmlCookieTest | class | Drupal\Tests\search\Functional\Rest | core/ |
@group rest | ||||
| SearchPlugin | class | Drupal\search\Annotation | core/ |
Defines a SearchPlugin type annotation object. | ||||
| SearchPluginBase | abstract class | Drupal\search\Plugin | core/ |
Defines a base class for plugins wishing to support search. | 3 | 2 | ||
| SearchPluginCollection | class | Drupal\search\Plugin | core/ |
Provides a container for lazily loading search plugins. | 2 | |||
| SearchPluginCollectionTest | class | Drupal\Tests\search\Unit | core/ |
@coversDefaultClass \Drupal\search\Plugin\SearchPluginCollection[[api-linebreak]] @group search |
Pagination
- Previous page
- Page 155
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.