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 |
|---|---|---|---|---|---|---|---|---|
| VocabularyPerTypeTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 vocabulary per type source plugin. | ||||
| VocabularyResetForm | class | Drupal\taxonomy\Form | core/ |
Provides confirmation form for resetting a vocabulary to alphabetical order. | ||||
| VocabularyResourceTestBase | abstract class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
6 | ||||
| VocabularyResponse | class | Drupal\vocabulary_serialization_test | core/ |
|||||
| VocabularyRouteProvider | class | Drupal\taxonomy\Entity\Routing | core/ |
|||||
| VocabularySerializationTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Regression test for https://www.drupal.org/node/2807263. | ||||
| VocabularySerializationTestController | class | Drupal\vocabulary_serialization_test | core/ |
|||||
| VocabularyStorage | class | Drupal\taxonomy | core/ |
Defines a storage handler class for taxonomy vocabularies. | ||||
| VocabularyStorageInterface | interface | Drupal\taxonomy | core/ |
Defines an interface for vocabulary entity storage classes. | 1 | 5 | ||
| VocabularyTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 vocabulary source plugin. | ||||
| VocabularyTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 vocabulary source plugin. | 1 | 1 | ||
| VocabularyTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "vocabulary" config entity type. | ||||
| VocabularyTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n vocabulary translations source from database. | ||||
| VocabularyTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n vocabulary translations source from database. | 1 | |||
| VocabularyTranslationTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 i18n vocabulary source plugin. | ||||
| VocabularyTranslationTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 i18n vocabulary source plugin. | ||||
| VocabularyTranslationTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests content translation for vocabularies. | ||||
| VocabularyUiTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the taxonomy vocabulary interface. | ||||
| VocabularyValidationTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests validation of vocabulary entities. | ||||
| VocabularyVid | class | Drupal\taxonomy\Plugin\views\argument | core/ |
Argument handler to accept a vocabulary id. | ||||
| VocabularyXmlAnonTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
@group rest | ||||
| VocabularyXmlBasicAuthTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
@group rest | ||||
| VocabularyXmlCookieTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
@group rest | ||||
| WaitTerminateTestTrait | trait | Drupal\Tests | core/ |
Provides a method to enforce that requests will wait for the terminate event. | 7 | |||
| Watchdog | class | Drupal\dblog\Plugin\views\wizard | core/ |
Defines a wizard for the watchdog table. | ||||
| WebAssert | class | Drupal\Tests | core/ |
Defines a class with methods for asserting presence of elements during tests. | 1 | 3 | ||
| WebAssertTest | class | Drupal\Tests\Core\Test | core/ |
Tests WebAssert functionality. | ||||
| WebDriverCurlService | class | Drupal\FunctionalJavascriptTests | core/ |
Provides a curl service to interact with Selenium driver. | 1 | |||
| WebDriverTestBase | abstract class | Drupal\FunctionalJavascriptTests | core/ |
Runs a browser test using a driver that supports JavaScript. | 163 | 157 | ||
| WebDriverTestBaseTest | class | Drupal\Tests\Core\Test | core/ |
@coversDefaultClass \Drupal\FunctionalJavascriptTests\WebDriverTestBase[[api-linebreak]] @group Test @runTestsInSeparateProcesses | ||||
| WebDriverWebAssert | class | Drupal\FunctionalJavascriptTests | core/ |
Defines a JSWebAssert with no support for status code and header assertions. | ||||
| WeekDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a week. | ||||
| WeekDate | class | Drupal\datetime\Plugin\views\argument | core/ |
Argument handler for a week. | ||||
| Weight | class | Drupal\Core\Render\Element | core/ |
Provides a form element for input of a weight. | 1 | |||
| WeightTest | class | Drupal\KernelTests\Core\Render\Element | core/ |
@coversDefaultClass \Drupal\Core\Render\Element\Weight[[api-linebreak]] @group Render | ||||
| WhoIsOnlineBlockTest | class | Drupal\Tests\user\Kernel | core/ |
Tests the Who's Online Block. | ||||
| WideModalRenderer | class | Drupal\dialog_renderer_test\Render\MainContent | core/ |
Default main content renderer for wide modal dialog requests. | 3 | |||
| WidgetAccessTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests the media library UI access. | ||||
| WidgetAnonymousTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests that the widget works as expected for anonymous users. | ||||
| WidgetBase | abstract class | Drupal\Core\Field | core/ |
Base class for 'Field widget' plugin implementations. | 22 | 22 | ||
| WidgetBaseInterface | interface | Drupal\Core\Field | core/ |
Base interface definition for "Field widget" plugins. | 1 | |||
| WidgetInterface | interface | Drupal\Core\Field | core/ |
Interface definition for field widget plugins. | 1 | 1 | 1 | |
| WidgetOEmbedTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests that oEmbed media can be added in the Media library's widget. | ||||
| WidgetOverflowTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests that uploads in the 'media_library_widget' works as expected. | ||||
| WidgetPluginManager | class | Drupal\Core\Field | core/ |
Plugin type manager for field widgets. | 2 | |||
| WidgetPluginManagerTest | class | Drupal\Tests\field\Kernel | core/ |
Tests the field widget manager. | ||||
| WidgetUploadTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests that uploads in the 'media_library_widget' works as expected. | ||||
| WidgetViewsTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests the views in the media library widget. | ||||
| WidgetWithoutTypesTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests the media library widget when no media types are available. | ||||
| WildcardConfigActionsTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests config actions targeting multiple entities using wildcards. |
Pagination
- Previous page
- Page 198
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.