Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ItemResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\aggregator\Functional\Rest\ItemResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\Item | core/ |
||||
ItemsImporter | class | Drupal\aggregator | core/ |
Defines an importer of aggregator items. | 2 | |||
ItemsImporterInterface | interface | Drupal\aggregator | core/ |
Provides an interface defining an aggregator items importer. | 1 | |||
ItemsPerPageTest | class | Drupal\Tests\views\Functional\Wizard | core/ |
Tests the ability of the views wizard to specify the number of items per page. | ||||
ItemStorage | class | Drupal\aggregator | core/ |
Controller class for aggregators items. | ||||
ItemStorageInterface | interface | Drupal\aggregator | core/ |
Defines an interface for aggregator item entity storage classes. | 1 | 2 | ||
ItemStorageSchema | class | Drupal\aggregator | core/ |
Defines the item schema handler. | ||||
ItemTest | class | Drupal\Tests\jsonapi\Functional | 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 | ||||
ItemXmlBasicAuthTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest | ||||
ItemXmlCookieTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest | ||||
Iterator | in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\migrate\Plugin\migrate\process\SubProcess instead. |
class | Drupal\migrate\Plugin\migrate\process | core/ |
Iterates and processes an associative array. | 1 | ||
IteratorTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the iterator process plugin. | ||||
JavascriptDeprecationTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests Javascript deprecation notices. | ||||
JavascriptGetDrupalSettingsTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests Drupal settings retrieval in JavascriptTestBase tests. | ||||
JavascriptStatesForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test states. | 1 | |||
JavascriptTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalJavascriptTests\WebDriverTestBase instead |
abstract class | Drupal\FunctionalJavascriptTests | core/ |
Runs a browser test using PhantomJS. | 1 | ||
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\views_test_data\Plugin\views\join | core/ |
Defines a join test plugin. | 1 | |||
JoinTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the join plugin. | ||||
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. | ||||
JsMessageTest | class | Drupal\FunctionalJavascriptTests\Core | core/ |
Tests core/drupal.message library. | ||||
JSMessageTestController | class | Drupal\js_message_test\Controller | core/ |
Test Controller to show message links. | 1 | |||
Json | class | Drupal\Component\Serialization | core/ |
Default serialization for JSON. | 88 | 3 | ||
JsonApiDocumentTopLevel | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents a JSON:API document's "top level". | 8 | |||
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 @group jsonapi | ||||
JsonApiDocumentTopLevelNormalizerTest | class | Drupal\Tests\jsonapi\Kernel\Normalizer | core/ |
@coversDefaultClass \Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer @group jsonapi | ||||
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. | 3 | |||
JsonapiKernelTestBase | abstract class | Drupal\Tests\jsonapi\Kernel | core/ |
Contains shared test utility methods. | 9 | 9 | ||
JsonApiRegressionTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API regression tests. | ||||
JsonApiRequestTestTrait | trait | Drupal\Tests\jsonapi\Functional | core/ |
Boilerplate for JSON:API Functional tests' HTTP requests. | ||||
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 @group jsonapi | ||||
JsonEncoder | class | Drupal\jsonapi\Encoder | core/ |
Encodes JSON:API data. | 2 | |||
JsonEncoder | class | Drupal\serialization\Encoder | core/ |
Adds 'ajax to the supported content types of the JSON encoder' | 2 | 5 | 4 |
Pagination
- Previous page
- Page 89
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.