Classes, traits, and interfaces - main - drupal

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

File

core/core.api.php, line 1529

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ViewsTestRssThemeHooks class Drupal\views_test_rss\Hook core/modules/views/tests/modules/views_test_rss/src/Hook/ViewsTestRssThemeHooks.php Hook implementations for views_test_rss.
ViewsThemeHooks class Drupal\views\Hook core/modules/views/src/Hook/ViewsThemeHooks.php Hook implementations for views. 2
ViewsThemeIntegrationTest class Drupal\Tests\views\Functional core/modules/views/tests/src/Functional/ViewsThemeIntegrationTest.php Tests the Views theme integration.
ViewsTokensHooks class Drupal\views\Hook core/modules/views/src/Hook/ViewsTokensHooks.php Hook implementations for views.
ViewStorageTest class Drupal\Tests\views\Kernel core/modules/views/tests/src/Kernel/ViewStorageTest.php Tests the CRUD functionality for a view.
ViewStyleHtmlListTest class Drupal\Tests\views\Functional core/modules/views/tests/src/Functional/ViewStyleHtmlListTest.php Tests the View HTML List style.
ViewsUIController class Drupal\views_ui\Controller core/modules/views_ui/src/Controller/ViewsUIController.php Returns responses for Views UI routes. 1
ViewsUiHooks class Drupal\views_ui\Hook core/modules/views_ui/src/Hook/ViewsUiHooks.php Hook implementations for views_ui. 1
ViewsUiIntegrationTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/ViewsUiIntegrationTest.php Tests Media Library's integration with Views UI.
ViewsUiTestFieldHooks class Drupal\views_ui_test_field\Hook core/modules/views_ui/tests/modules/views_ui_test_field/src/Hook/ViewsUiTestFieldHooks.php Hook implementations for views_ui_test_field.
ViewsUiTestFieldViewsHooks class Drupal\views_ui_test_field\Hook core/modules/views_ui/tests/modules/views_ui_test_field/src/Hook/ViewsUiTestFieldViewsHooks.php Hook implementations for views_ui_test_field.
ViewsUiTestHooks class Drupal\views_ui_test\Hook core/modules/views_ui/tests/modules/views_ui_test/src/Hook/ViewsUiTestHooks.php Hook implementations for views_ui_test.
ViewsUiTestThemeHooks class Drupal\views_ui_test_theme\Hook core/modules/views_ui/tests/themes/views_ui_test_theme/src/Hook/ViewsUiTestThemeHooks.php Hook implementations for views_ui_test_theme.
ViewsUiThemeHooks class Drupal\views_ui\Hook core/modules/views_ui/src/Hook/ViewsUiThemeHooks.php Hook implementations for views_ui. 1
ViewsViewsExecutionHooks class Drupal\views\Hook core/modules/views/src/Hook/ViewsViewsExecutionHooks.php Hook implementations for views.
ViewsViewsHooks class Drupal\views\Hook core/modules/views/src/Hook/ViewsViewsHooks.php Hook implementations for views.
ViewsWizard class Drupal\views\Attribute core/modules/views/src/Attribute/ViewsWizard.php Defines a Plugin attribute object for views wizard plugins. 11
ViewsWizard class Drupal\views\Annotation core/modules/views/src/Annotation/ViewsWizard.php Defines a Plugin annotation object for views wizard plugins.
ViewsWizardTest class Drupal\Tests\views_ui\FunctionalJavascript core/modules/views_ui/tests/src/FunctionalJavascript/ViewsWizardTest.php Tests views creation wizard.
ViewTest class Drupal\Tests\views\Unit\Plugin\area core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php Tests Drupal\views\Plugin\views\area\View.
ViewTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/ViewTest.php JSON:API integration test for the "View" config entity type.
ViewTestBase abstract class Drupal\Tests\views\Functional core/modules/views/tests/src/Functional/ViewTestBase.php Defines a base class for Views testing in the full web test environment. 87 70
ViewTestData class Drupal\views\Tests core/modules/views/src/Tests/ViewTestData.php Provides tests view data and the base test schema with sample data records. 82
ViewTranslationTest class Drupal\Tests\views\Functional core/modules/views/tests/src/Functional/ViewTranslationTest.php Tests views title translation.
ViewUI class Drupal\views_ui core/modules/views_ui/src/ViewUI.php Stores UI related temporary settings. 9
ViewUIConverter class Drupal\views_ui\ProxyClass\ParamConverter core/modules/views_ui/src/ProxyClass/ParamConverter/ViewUIConverter.php Provides a proxy class for \Drupal\views_ui\ParamConverter\ViewUIConverter.
ViewUIConverter class Drupal\views_ui\ParamConverter core/modules/views_ui/src/ParamConverter/ViewUIConverter.php Provides upcasting for a view entity to be used in the Views UI. 2
ViewUIObjectTest class Drupal\Tests\views_ui\Unit core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php Tests Drupal\views_ui\ViewUI.
ViewValidationTest class Drupal\Tests\views\Kernel\Entity core/modules/views/tests/src/Kernel/Entity/ViewValidationTest.php Tests validation of view entities.
ViewXmlAnonTest class Drupal\Tests\views\Functional\Rest core/modules/views/tests/src/Functional/Rest/ViewXmlAnonTest.php Tests View Xml Anon.
ViewXmlBasicAuthTest class Drupal\Tests\views\Functional\Rest core/modules/views/tests/src/Functional/Rest/ViewXmlBasicAuthTest.php Tests View Xml Basic Auth.
ViewXmlCookieTest class Drupal\Tests\views\Functional\Rest core/modules/views/tests/src/Functional/Rest/ViewXmlCookieTest.php Tests View Xml Cookie.
Vocabulary class Drupal\taxonomy\Entity core/modules/taxonomy/src/Entity/Vocabulary.php Defines the taxonomy vocabulary entity. 65
Vocabulary class Drupal\taxonomy\Plugin\migrate\source\d6 core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php Drupal 6 vocabularies source from database. 1 1
Vocabulary class Drupal\taxonomy\Plugin\migrate\source\d7 core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php Drupal 7 vocabularies source from database. 2 2
VocabularyAccessControlHandler class Drupal\taxonomy core/modules/taxonomy/src/VocabularyAccessControlHandler.php Defines the access control handler for the taxonomy vocabulary entity type. 1
VocabularyCrudTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/VocabularyCrudTest.php Tests loading, saving and deleting vocabularies.
VocabularyDeleteForm class Drupal\taxonomy\Form core/modules/taxonomy/src/Form/VocabularyDeleteForm.php Provides a deletion confirmation form for taxonomy vocabulary. 1
VocabularyForm class Drupal\taxonomy core/modules/taxonomy/src/VocabularyForm.php Base form for vocabulary edit forms. 1
VocabularyInterface interface Drupal\taxonomy core/modules/taxonomy/src/VocabularyInterface.php Provides an interface defining a taxonomy vocabulary entity. 1 14
VocabularyJsonAnonTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyJsonAnonTest.php Tests Vocabulary Json Anon.
VocabularyJsonBasicAuthTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyJsonBasicAuthTest.php Tests Vocabulary Json Basic Auth.
VocabularyJsonCookieTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyJsonCookieTest.php Tests Vocabulary Json Cookie.
VocabularyLanguageTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php Tests the language functionality for vocabularies.
VocabularyListBuilder class Drupal\taxonomy core/modules/taxonomy/src/VocabularyListBuilder.php Defines a class to build a listing of taxonomy vocabulary entities. 1
VocabularyPermissionsTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php Tests the taxonomy vocabulary permissions.
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
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.
VocabularyResetForm class Drupal\taxonomy\Form core/modules/taxonomy/src/Form/VocabularyResetForm.php Provides confirmation form for resetting a vocabulary to alphabetical order. 1
VocabularyResourceTestBase abstract class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php Resource test base for the TaxonomyVocabulary entity. 6

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.