Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ItemStorageSchema | class | Drupal\aggregator | core/ |
Defines the item schema handler. | ||||
ItemTest | class | Drupal\Tests\aggregator\Functional\Jsonapi | core/ |
JSON:API integration test for the "Item" content entity type. | ||||
ItemViewBuilder | class | Drupal\aggregator | core/ |
View builder handler for aggregator feed items. | ||||
ItemWithoutFeedTest | class | Drupal\Tests\aggregator\Kernel | core/ |
Tests clean handling of an item with a missing feed ID. | ||||
ItemXmlAnonTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest @group legacy | ||||
ItemXmlBasicAuthTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest @group legacy | ||||
ItemXmlCookieTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest @group legacy | ||||
JavascriptDeprecationTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests Javascript deprecation notices. | ||||
JavascriptErrorsSuppressionTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests that Drupal.throwError can be suppressed to allow a test to pass. | ||||
JavascriptErrorsTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests that Drupal.throwError will cause a deprecation warning. | ||||
JavascriptGetDrupalSettingsTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests Drupal settings retrieval in WebDriverTestBase tests. | ||||
JavascriptStatesForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test states. | 1 | |||
JavascriptStatesTest | class | Drupal\FunctionalJavascriptTests\Core\Form | core/ |
Tests the state of elements based on another elements. | ||||
JoinPluginBase | class | Drupal\views\Plugin\views\join | core/ |
Represents a join and creates the SQL necessary to implement the join. | 4 | 4 | ||
JoinPluginInterface | interface | Drupal\views\Plugin\views\join | core/ |
Represents a join and creates the SQL necessary to implement the join. | 1 | |||
JoinTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the join plugin. | ||||
JoinTest | class | Drupal\views_test_data\Plugin\views\join | core/ |
Defines a join test plugin. | 1 | |||
JqueryUiLibraryAssetsTest | class | Drupal\FunctionalTests\Libraries | core/ |
Tests the loading of jQuery UI CSS and JS assets. | ||||
JqueryUiTestAssetsController | class | Drupal\jqueryui_library_assets_test\Controller | core/ |
Controller for testing jQuery UI asset loading order. | ||||
JsAjaxTestCommand | class | Drupal\js_ajax_test\Ajax | core/ |
Test Ajax command. | 1 | |||
JsAjaxTestForm | class | Drupal\js_ajax_test\Form | core/ |
Test form for js_ajax_test. | 1 | |||
JsCollectionGrouper | class | Drupal\Core\Asset | core/ |
Groups JavaScript assets. | 2 | |||
JsCollectionOptimizer | class | Drupal\Core\Asset | core/ |
Optimizes JavaScript assets. | 2 | |||
JsCollectionRenderer | class | Drupal\Core\Asset | core/ |
Renders JavaScript assets. | 2 | |||
JsCookieTestController | class | Drupal\js_cookie_test\Controller | core/ |
Test controller to assert js-cookie library integration. | ||||
JsDeprecationTestController | class | Drupal\js_deprecation_test\Controller | core/ |
Test Controller to show message links. | ||||
JsErrorsTestController | class | Drupal\js_errors_test\Controller | core/ |
Test Controller loading js_errors_test/errors_test library. | ||||
JSInteractionTest | class | Drupal\FunctionalJavascriptTests\Tests | core/ |
Tests fault tolerant interactions. | ||||
JSInteractionTestForm | class | Drupal\js_interaction_test\Controller | core/ |
Controller for testing fault tolerant JavaScript interactions. | 1 | |||
JsMessageTest | class | Drupal\FunctionalJavascriptTests\Core | core/ |
Tests core/drupal.message library. | 1 | 1 | ||
JSMessageTestController | class | Drupal\js_message_test\Controller | core/ |
Test Controller to show message links. | 2 | |||
Json | class | Drupal\Component\Serialization | core/ |
Default serialization for JSON. | 95 | 3 | ||
JsonApiDocumentTopLevel | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents a JSON:API document's "top level". | 9 | |||
JsonApiDocumentTopLevelNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes the top-level document according to the JSON:API specification. | 1 | 2 | ||
JsonApiDocumentTopLevelNormalizerTest | class | Drupal\Tests\jsonapi\Unit\Normalizer | core/ |
@coversDefaultClass \Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer[[api-linebreak]] @group jsonapi | ||||
JsonApiDocumentTopLevelNormalizerTest | class | Drupal\Tests\jsonapi\Kernel\Normalizer | core/ |
@coversDefaultClass \Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer[[api-linebreak]] @group jsonapi | ||||
JsonApiFunctionalDateFieldTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Date" field. | ||||
JsonApiFunctionalMultilingualTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Tests JSON:API multilingual support. | ||||
JsonApiFunctionalTest | class | Drupal\Tests\jsonapi\Functional | core/ |
General functional test class. | ||||
JsonApiFunctionalTestBase | abstract class | Drupal\Tests\jsonapi\Functional | core/ |
Provides helper methods for the JSON:API module's functional tests. | 5 | 1 | ||
JsonapiKernelTestBase | abstract class | Drupal\Tests\jsonapi\Kernel | core/ |
Contains shared test utility methods. | 11 | 11 | ||
JsonapiMaintenanceModeSubscriber | class | Drupal\jsonapi\EventSubscriber | core/ |
Maintenance mode subscriber for JSON:API requests. | 2 | |||
JsonApiRegressionTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API regression tests. | ||||
JsonApiRegressionTest | class | Drupal\Tests\rdf\Functional\Jsonapi | core/ |
JSON:API regression tests. | ||||
JsonApiRequestTestTrait | trait | Drupal\Tests\jsonapi\Functional | core/ |
Boilerplate for JSON:API Functional tests' HTTP requests. | 1 | |||
JsonApiRequestValidator | class | Drupal\jsonapi\EventSubscriber | core/ |
Request subscriber that validates a JSON:API request. | 2 | |||
JsonapiServiceProvider | class | Drupal\jsonapi | core/ |
Adds 'api_json' as known format and prevents its use in the REST module. | ||||
JsonApiSettingsForm | class | Drupal\jsonapi\Form | core/ |
Configure JSON:API settings for this site. | 1 | |||
JsonApiSpec | class | Drupal\jsonapi | core/ |
Defines constants used for compliance with the JSON:API specification. | 7 | |||
JsonApiSpecTest | class | Drupal\Tests\jsonapi\Unit | core/ |
@coversDefaultClass \Drupal\jsonapi\JsonApiSpec[[api-linebreak]] @group jsonapi |
Pagination
- Previous page
- Page 90
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.