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
ResponseStatus class Drupal\system\Plugin\Condition core/modules/system/src/Plugin/Condition/ResponseStatus.php Provides a 'Response status' condition.
ResponseStatusTest class Drupal\KernelTests\Core\Plugin\Condition core/tests/Drupal/KernelTests/Core/Plugin/Condition/ResponseStatusTest.php Tests the Response Status Condition, provided by the system module.
ResponseTest class Drupal\Tests\system\Functional\Form core/modules/system/tests/src/Functional/Form/ResponseTest.php Tests the form API Response element.
ResponsiveImage class Drupal\responsive_image\Element core/modules/responsive_image/src/Element/ResponsiveImage.php Provides a responsive image element.
ResponsiveImageAdminUITest class Drupal\Tests\responsive_image\Functional core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php Thoroughly test the administrative interface of the Responsive Image module.
ResponsiveImageBuilder class Drupal\responsive_image core/modules/responsive_image/src/ResponsiveImageBuilder.php Provides methods related to building responsive image source attributes. 2
ResponsiveImageFieldDisplayTest class Drupal\Tests\responsive_image\Functional core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php Tests responsive image display formatter.
ResponsiveImageFieldUiTest class Drupal\Tests\responsive_image\FunctionalJavascript core/modules/responsive_image/tests/src/FunctionalJavascript/ResponsiveImageFieldUiTest.php Tests the responsive image field UI.
ResponsiveImageFormatter class Drupal\responsive_image\Plugin\Field\FieldFormatter core/modules/responsive_image/src/Plugin/Field/FieldFormatter/ResponsiveImageFormatter.php Plugin for responsive image formatter. 1 2
ResponsiveImageHooks class Drupal\responsive_image\Hook core/modules/responsive_image/src/Hook/ResponsiveImageHooks.php Hook implementations for responsive_image.
ResponsiveImageIntegrationTest class Drupal\Tests\responsive_image\Kernel core/modules/responsive_image/tests/src/Kernel/ResponsiveImageIntegrationTest.php Tests the integration of responsive image with other components.
ResponsiveImageStyle class Drupal\responsive_image\Entity core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php Defines the responsive image style entity. 11
ResponsiveImageStyleConfigEntityUnitTest class Drupal\Tests\responsive_image\Unit core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php Tests Drupal\responsive_image\Entity\ResponsiveImageStyle.
ResponsiveImageStyleForm class Drupal\responsive_image core/modules/responsive_image/src/ResponsiveImageStyleForm.php Form controller for the responsive image edit/add forms. 1
ResponsiveImageStyleInterface interface Drupal\responsive_image core/modules/responsive_image/src/ResponsiveImageStyleInterface.php Provides an interface defining a responsive_image mapping entity. 1 3
ResponsiveImageStyleJsonAnonTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleJsonAnonTest.php Tests Responsive Image Style Json Anon.
ResponsiveImageStyleJsonBasicAuthTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleJsonBasicAuthTest.php Tests Responsive Image Style Json Basic Auth.
ResponsiveImageStyleJsonCookieTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleJsonCookieTest.php Tests Responsive Image Style Json Cookie.
ResponsiveImageStyleListBuilder class Drupal\responsive_image core/modules/responsive_image/src/ResponsiveImageStyleListBuilder.php Provides a listing of responsive image styles. 1
ResponsiveImageStyleResourceTestBase abstract class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleResourceTestBase.php Resource test base for ResponsiveImageStyle entity. 6
ResponsiveImageStyles class Drupal\responsive_image\Plugin\migrate\source\d7 core/modules/responsive_image/src/Plugin/migrate/source/d7/ResponsiveImageStyles.php Gets Drupal responsive image styles source from database. 1
ResponsiveImageStylesTest class Drupal\Tests\responsive_image\Kernel\Plugin\migrate\source\d7 core/modules/responsive_image/tests/src/Kernel/Plugin/migrate/source/d7/ResponsiveImageStylesTest.php Tests D7 responsive image styles source plugin.
ResponsiveImageStyleTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php JSON:API integration test for the "ResponsiveImageStyle" config entity type.
ResponsiveImageStyleValidationTest class Drupal\Tests\responsive_image\Kernel core/modules/responsive_image/tests/src/Kernel/ResponsiveImageStyleValidationTest.php Tests validation of responsive_image_style entities.
ResponsiveImageStyleXmlAnonTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleXmlAnonTest.php Tests Responsive Image Style Xml Anon.
ResponsiveImageStyleXmlBasicAuthTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleXmlBasicAuthTest.php Tests Responsive Image Style Xml Basic Auth.
ResponsiveImageStyleXmlCookieTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleXmlCookieTest.php Tests Responsive Image Style Xml Cookie.
ResponsiveImageTestFormatter class Drupal\responsive_image_test_module\Plugin\Field\FieldFormatter core/modules/responsive_image/tests/modules/responsive_image_test_module/src/Plugin/Field/FieldFormatter/ResponsiveImageTestFormatter.php Plugin to test responsive image formatter.
ResponsiveImageThemeHooks class Drupal\responsive_image\Hook core/modules/responsive_image/src/Hook/ResponsiveImageThemeHooks.php Theme hooks for responsive_image. 1
RestExport class Drupal\rest\Plugin\views\display core/modules/rest/src/Plugin/views/display/RestExport.php The plugin that handles Data response callbacks for REST resources. 3
RestExportAuthTest class Drupal\Tests\rest\Functional\Views core/modules/rest/tests/src/Functional/Views/RestExportAuthTest.php Tests authentication for REST display.
RestExportJsonApiUnsupportedTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/RestExportJsonApiUnsupportedTest.php Ensures that the 'api_json' format is not supported by the REST module.
RestExportTest class Drupal\Tests\rest\Kernel\Views core/modules/rest/tests/src/Kernel/Views/RestExportTest.php Tests the REST export view display plugin.
RestHooks class Drupal\rest\Hook core/modules/rest/src/Hook/RestHooks.php Hook implementations for rest.
RestJsonApiUnsupportedTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupportedTest.php Ensures that the 'api_json' format is not supported by the REST module.
RestPermissions class Drupal\rest core/modules/rest/src/RestPermissions.php Provides rest module permissions. 1
RestPermissionsTest class Drupal\Tests\rest\Kernel\Entity core/modules/rest/tests/src/Kernel/Entity/RestPermissionsTest.php Tests Drupal\rest\RestPermissions.
RestResource class Drupal\rest\Attribute core/modules/rest/src/Attribute/RestResource.php Defines a REST resource attribute object. 6
RestResource class Drupal\rest\Annotation core/modules/rest/src/Annotation/RestResource.php Defines a REST resource annotation object.
RestResourceConfig class Drupal\rest\Entity core/modules/rest/src/Entity/RestResourceConfig.php Defines a RestResourceConfig configuration entity class. 10
RestResourceConfigInterface interface Drupal\rest core/modules/rest/src/RestResourceConfigInterface.php Defines a configuration entity to store enabled REST resources. 1 14
RestResourceConfigJsonAnonTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigJsonAnonTest.php Tests Rest Resource Config Json Anon.
RestResourceConfigJsonBasicAuthTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigJsonBasicAuthTest.php Tests Rest Resource Config Json Basic Auth.
RestResourceConfigJsonCookieTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigJsonCookieTest.php Tests Rest Resource Config Json Cookie.
RestResourceConfigResourceTestBase abstract class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php Resource test base for the RestResourceConfig entity. 6
RestResourceConfigTest class Drupal\Tests\rest\Unit\Entity core/modules/rest/tests/src/Unit/Entity/RestResourceConfigTest.php Tests Drupal\rest\Entity\RestResourceConfig.
RestResourceConfigTest class Drupal\Tests\rest\Kernel\Entity core/modules/rest/tests/src/Kernel/Entity/RestResourceConfigTest.php Tests Drupal\rest\Entity\RestResourceConfig.
RestResourceConfigTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php JSON:API integration test for the "RestResourceConfig" config entity type.
RestResourceConfigValidationTest class Drupal\Tests\rest\Kernel\Entity core/modules/rest/tests/src/Kernel/Entity/RestResourceConfigValidationTest.php Tests validation of rest_resource_config entities.
RestResourceConfigXmlAnonTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigXmlAnonTest.php Tests Rest Resource Config Xml Anon.

Other projects


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