Classes, traits, and interfaces in Drupal 9
Primary tabs
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
|
Name |
Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|
| ViewsTestCacheContext | class |
Drupal\ |
core/ |
Test cache context which uses a dynamic context coming from state. | 2 | ||
| ViewsTestCacheContextFilter | class |
Drupal\ |
core/ |
Plugin annotation @ViewsFilter("views_test_test_cache_context"); | |||
| ViewsTestDataController | class |
Drupal\ |
core/ |
Controller class for views_test_data callbacks. | |||
| ViewsTestDataElementEmbedForm | class |
Drupal\ |
core/ |
Simple form page callback to test the view element. | 1 | ||
| ViewsTestDataElementForm | class |
Drupal\ |
core/ |
Simple form page callback to test the view element. | 1 | ||
| ViewsTestDataErrorForm | class |
Drupal\ |
core/ |
Implements a test form that has a validation error. | |||
| ViewsTestFormMultipleController | class |
Drupal\ |
core/ |
Controller routines for views form multiple test routes. | |||
| ViewsTestRenderCacheController | class |
Drupal\ |
core/ |
Provides route responses. | |||
| ViewsThemeIntegrationTest | class |
Drupal\ |
core/ |
Tests the Views theme integration. | |||
| ViewStorageTest | class |
Drupal\ |
core/ |
Tests the CRUD functionality for a view. | |||
| ViewsUIController | class |
Drupal\ |
core/ |
Returns responses for Views UI routes. | 1 | ||
| ViewsUiIntegrationTest | class |
Drupal\ |
core/ |
Tests Media Library's integration with Views UI. | |||
| ViewsUITourTest | class |
Drupal\ |
core/ |
Tests the Views UI tour. | |||
| ViewsWizard | class |
Drupal\ |
core/ |
Defines a Plugin annotation object for views wizard plugins. | |||
| ViewsWizardTest | class |
Drupal\ |
core/ |
Tests views creation wizard. | |||
| ViewTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\views\Plugin\views\area\View @group views | |||
| ViewTest | class |
Drupal\ |
core/ |
JSON:API integration test for the "View" config entity type. | |||
| ViewTestBase | abstract class |
Drupal\ |
core/ |
Defines a base class for Views testing in the full web test environment. | 84 | 70 | |
| ViewTestData | class |
Drupal\ |
core/ |
Provides tests view data and the base test schema with sample data records. | 87 | ||
| ViewTranslationTest | class |
Drupal\ |
core/ |
Tests views title translation. | |||
| ViewUI | class |
Drupal\ |
core/ |
Stores UI related temporary settings. | 6 | ||
| ViewUIConverter | class |
Drupal\ |
core/ |
Provides upcasting for a view entity to be used in the Views UI. | 2 | ||
| ViewUIConverter | class |
Drupal\ |
core/ |
Provides a proxy class for \Drupal\views_ui\ParamConverter\ViewUIConverter. | |||
| ViewUIObjectTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\views_ui\ViewUI @group views_ui | |||
| ViewXmlAnonTest | class |
Drupal\ |
core/ |
@group rest | |||
| ViewXmlBasicAuthTest | class |
Drupal\ |
core/ |
@group rest | |||
| ViewXmlCookieTest | class |
Drupal\ |
core/ |
@group rest | |||
| Vocabulary | class |
Drupal\ |
core/ |
Drupal 6 vocabularies source from database. | 1 | ||
| Vocabulary | class |
Drupal\ |
core/ |
Defines the taxonomy vocabulary entity. | 61 | ||
| Vocabulary | class |
Drupal\ |
core/ |
Drupal 7 vocabularies source from database. | 2 | 1 | |
| VocabularyAccessControlHandler | class |
Drupal\ |
core/ |
Defines the access control handler for the taxonomy vocabulary entity type. | |||
| VocabularyCrudTest | class |
Drupal\ |
core/ |
Tests loading, saving and deleting vocabularies. | |||
| VocabularyDeleteForm | class |
Drupal\ |
core/ |
Provides a deletion confirmation form for taxonomy vocabulary. | |||
| VocabularyForm | class |
Drupal\ |
core/ |
Base form for vocabulary edit forms. | |||
| VocabularyHalJsonAnonTest | class |
Drupal\ |
core/ |
@group hal | |||
| VocabularyHalJsonBasicAuthTest | class |
Drupal\ |
core/ |
@group hal | |||
| VocabularyHalJsonCookieTest | class |
Drupal\ |
core/ |
@group hal | |||
| VocabularyInterface | interface |
Drupal\ |
core/ |
Provides an interface defining a taxonomy vocabulary entity. | 1 | 11 | |
| VocabularyJsonAnonTest | class |
Drupal\ |
core/ |
@group rest | |||
| VocabularyJsonBasicAuthTest | class |
Drupal\ |
core/ |
@group rest | |||
| VocabularyJsonCookieTest | class |
Drupal\ |
core/ |
@group rest | |||
| VocabularyLanguageTest | class |
Drupal\ |
core/ |
Tests the language functionality for vocabularies. | |||
| VocabularyListBuilder | class |
Drupal\ |
core/ |
Defines a class to build a listing of taxonomy vocabulary entities. | |||
| VocabularyPermissionsTest | class |
Drupal\ |
core/ |
Tests the taxonomy vocabulary permissions. | |||
| VocabularyPerType | class |
Drupal\ |
core/ |
Drupal 6 vocabularies with associated node types source from database. | |||
| VocabularyPerTypeTest | class |
Drupal\ |
core/ |
Tests D6 vocabulary per type source plugin. | |||
| VocabularyResetForm | class |
Drupal\ |
core/ |
Provides confirmation form for resetting a vocabulary to alphabetical order. | |||
| VocabularyResourceTestBase | abstract class |
Drupal\ |
core/ |
9 | 3 | ||
| VocabularyResponse | class |
Drupal\ |
core/ |
||||
| VocabularyRouteProvider | class |
Drupal\ |
core/ |