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

Namesort ascending Type Namespace Location Description Direct uses Use statements Strings
WidgetPluginManager class Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetPluginManager.php Plugin type manager for field widgets. 2
WidgetOverflowTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetOverflowTest.php Tests that uploads in the 'media_library_widget' works as expected.
WidgetOEmbedTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetOEmbedTest.php Tests that oEmbed media can be added in the Media library's widget.
WidgetInterface interface Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetInterface.php Interface definition for field widget plugins. 1 1 1
WidgetBaseInterface interface Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetBaseInterface.php Base interface definition for "Field widget" plugins. 1
WidgetBase abstract class Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetBase.php Base class for 'Field widget' plugin implementations. 1 1
WidgetAnonymousTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetAnonymousTest.php Tests that the widget works as expected for anonymous users.
WidgetAccessTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/WidgetAccessTest.php Tests the media library UI access.
WideModalRenderer class Drupal\dialog_renderer_test\Render\MainContent core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php Default main content renderer for wide modal dialog requests. 3
WhoIsOnlineBlockTest class Drupal\Tests\user\Kernel core/modules/user/tests/src/Kernel/WhoIsOnlineBlockTest.php Tests the Who's Online Block.
WeightTest class Drupal\KernelTests\Core\Render\Element core/tests/Drupal/KernelTests/Core/Render/Element/WeightTest.php @coversDefaultClass \Drupal\Core\Render\Element\Weight @group Render
Weight class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Weight.php 1
WebDriverWebAssert class Drupal\FunctionalJavascriptTests core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php Defines a JSWebAssert with no support for status code and header assertions.
WebDriverTestBaseTest class Drupal\Tests\Core\Test core/tests/Drupal/Tests/Core/Test/WebDriverTestBaseTest.php @coversDefaultClass \Drupal\FunctionalJavascriptTests\WebDriverTestBase @group Test @runTestsInSeparateProcesses
WebDriverTestBase abstract class Drupal\FunctionalJavascriptTests core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php Runs a browser test using a driver that supports JavaScript. 149 144
WebDriverCurlService class Drupal\FunctionalJavascriptTests core/tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php Provides a curl service to interact with Selenium driver. 1
WebAssertTest class Drupal\FunctionalTests core/tests/Drupal/FunctionalTests/WebAssertTest.php Tests WebAssert functionality.
WaitTerminateTestTrait trait Drupal\Tests core/tests/Drupal/Tests/WaitTerminateTestTrait.php Provides a method to enforce that requests will wait for the terminate event. 7
VocabularyXmlCookieTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyXmlCookieTest.php @group rest
VocabularyXmlBasicAuthTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyXmlBasicAuthTest.php @group rest
VocabularyXmlAnonTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyXmlAnonTest.php @group rest
VocabularyUiTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php Tests the taxonomy vocabulary interface.
VocabularyTranslationTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d7/VocabularyTranslationTest.php Tests D7 i18n vocabulary source plugin.
VocabularyTranslationTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/VocabularyTranslationTest.php Tests D6 i18n vocabulary source plugin.
VocabularyTranslationTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php Tests content translation for vocabularies.
VocabularyTranslation class Drupal\taxonomy\Plugin\migrate\source\d7 core/modules/taxonomy/src/Plugin/migrate/source/d7/VocabularyTranslation.php Drupal 7 i18n vocabulary translations source from database. 1
VocabularyTranslation class Drupal\taxonomy\Plugin\migrate\source\d6 core/modules/taxonomy/src/Plugin/migrate/source/d6/VocabularyTranslation.php Drupal 6 i18n vocabulary translations source from database.
VocabularyTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d7/VocabularyTest.php Tests D7 vocabulary source plugin. 1 1
VocabularyTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/VocabularyTest.php Tests D6 vocabulary source plugin.
VocabularyTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/VocabularyTest.php JSON:API integration test for the "vocabulary" config entity type.
VocabularyStorageInterface interface Drupal\taxonomy core/modules/taxonomy/src/VocabularyStorageInterface.php Defines an interface for vocabulary entity storage classes. 1 4
VocabularyStorage class Drupal\taxonomy core/modules/taxonomy/src/VocabularyStorage.php Defines a storage handler class for taxonomy vocabularies.
VocabularySerializationTestController class Drupal\vocabulary_serialization_test core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php
VocabularySerializationTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/VocabularySerializationTest.php Regression test for https://www.drupal.org/node/2807263.
VocabularyRouteProvider class Drupal\taxonomy\Entity\Routing core/modules/taxonomy/src/Entity/Routing/VocabularyRouteProvider.php
VocabularyResponse class Drupal\vocabulary_serialization_test core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php
VocabularyResourceTestBase abstract class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php 6
VocabularyResetForm class Drupal\taxonomy\Form core/modules/taxonomy/src/Form/VocabularyResetForm.php Provides confirmation form for resetting a vocabulary to alphabetical order.
VocabularyPerTypeTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/VocabularyPerTypeTest.php Tests D6 vocabulary per type source plugin.
VocabularyPerType class Drupal\taxonomy\Plugin\migrate\source\d6 core/modules/taxonomy/src/Plugin/migrate/source/d6/VocabularyPerType.php Drupal 6 vocabularies with associated node types source from database. 1
VocabularyPermissionsTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php Tests the taxonomy vocabulary permissions.
VocabularyListBuilder class Drupal\taxonomy core/modules/taxonomy/src/VocabularyListBuilder.php Defines a class to build a listing of taxonomy vocabulary entities.
VocabularyLanguageTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php Tests the language functionality for vocabularies.
VocabularyJsonCookieTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyJsonCookieTest.php @group rest
VocabularyJsonBasicAuthTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyJsonBasicAuthTest.php @group rest
VocabularyJsonAnonTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyJsonAnonTest.php @group rest
VocabularyInterface interface Drupal\taxonomy core/modules/taxonomy/src/VocabularyInterface.php Provides an interface defining a taxonomy vocabulary entity. 1 12
VocabularyForm class Drupal\taxonomy core/modules/taxonomy/src/VocabularyForm.php Base form for vocabulary edit forms.
VocabularyDeleteForm class Drupal\taxonomy\Form core/modules/taxonomy/src/Form/VocabularyDeleteForm.php Provides a deletion confirmation form for taxonomy vocabulary.
VocabularyCrudTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/VocabularyCrudTest.php Tests loading, saving and deleting vocabularies.

Pages

Other projects