Classes, traits, and interfaces - 10.3.x - 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 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
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.
ResponsiveImageLazyLoadUpdateTest class Drupal\Tests\responsive_image\Functional core/modules/responsive_image/tests/src/Functional/ResponsiveImageLazyLoadUpdateTest.php Tests lazy-load upgrade path.
ResponsiveImageOrderMultipliersNumericallyUpdateTest class Drupal\Tests\responsive_image\Functional core/modules/responsive_image/tests/src/Functional/ResponsiveImageOrderMultipliersNumericallyUpdateTest.php Tests order multipliers numerically upgrade path.
ResponsiveImageStyle class Drupal\responsive_image\Entity core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php Defines the responsive image style entity. 13
ResponsiveImageStyleConfigEntityUnitTest class Drupal\Tests\responsive_image\Unit core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @coversDefaultClass \Drupal\responsive_image\Entity\ResponsiveImageStyle[[api-linebreak]] @group block
ResponsiveImageStyleForm class Drupal\responsive_image core/modules/responsive_image/src/ResponsiveImageStyleForm.php Form controller for the responsive image edit/add forms.
ResponsiveImageStyleInterface interface Drupal\responsive_image core/modules/responsive_image/src/ResponsiveImageStyleInterface.php Provides an interface defining a responsive_image mapping entity. 1 5
ResponsiveImageStyleJsonAnonTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleJsonAnonTest.php @group rest
ResponsiveImageStyleJsonBasicAuthTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleJsonBasicAuthTest.php @group rest
ResponsiveImageStyleJsonCookieTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleJsonCookieTest.php @group rest
ResponsiveImageStyleListBuilder class Drupal\responsive_image core/modules/responsive_image/src/ResponsiveImageStyleListBuilder.php Provides a listing of responsive image styles.
ResponsiveImageStyleResourceTestBase abstract class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleResourceTestBase.php ResourceTestBase 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.
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 @group rest
ResponsiveImageStyleXmlBasicAuthTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleXmlBasicAuthTest.php @group rest
ResponsiveImageStyleXmlCookieTest class Drupal\Tests\responsive_image\Functional\Rest core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleXmlCookieTest.php @group rest
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.
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.
RestExportJsonApiUnsupported class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/RestExportJsonApiUnsupported.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.
RestJsonApiUnsupported class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.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.
RestPermissionsTest class Drupal\Tests\rest\Kernel\Entity core/modules/rest/tests/src/Kernel/Entity/RestPermissionsTest.php @coversDefaultClass \Drupal\rest\RestPermissions[[api-linebreak]]
RestResource class Drupal\rest\Annotation core/modules/rest/src/Annotation/RestResource.php Defines a REST resource annotation object.
RestResource class Drupal\rest\Attribute core/modules/rest/src/Attribute/RestResource.php Defines a REST resource attribute object. 6
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 @group rest
RestResourceConfigJsonBasicAuthTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigJsonBasicAuthTest.php @group rest
RestResourceConfigJsonCookieTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigJsonCookieTest.php @group rest
RestResourceConfigResourceTestBase abstract class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php 6
RestResourceConfigTest class Drupal\Tests\rest\Unit\Entity core/modules/rest/tests/src/Unit/Entity/RestResourceConfigTest.php @coversDefaultClass \Drupal\rest\Entity\RestResourceConfig[[api-linebreak]]
RestResourceConfigTest class Drupal\Tests\rest\Kernel\Entity core/modules/rest/tests/src/Kernel/Entity/RestResourceConfigTest.php @coversDefaultClass \Drupal\rest\Entity\RestResourceConfig[[api-linebreak]]
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 @group rest
RestResourceConfigXmlBasicAuthTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigXmlBasicAuthTest.php @group rest
RestResourceConfigXmlCookieTest class Drupal\Tests\rest\Functional\Rest core/modules/rest/tests/src/Functional/Rest/RestResourceConfigXmlCookieTest.php @group rest
RestripeCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/RestripeCommand.php AJAX command for resetting the striping on a table. 2
RestTestConstraint class Drupal\rest_test\Plugin\Validation\Constraint core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php Adds some validations for a REST test field.
RestTestConstraintValidator class Drupal\rest_test\Plugin\Validation\Constraint core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraintValidator.php Validator for \Drupal\rest_test\Plugin\Validation\Constraint\RestTestConstraint.
Result class Drupal\views\Plugin\views\area core/modules/views/src/Plugin/views/area/Result.php Views area handler to display some configurable result summary. 1
ResultRow class Drupal\views core/modules/views/src/ResultRow.php A class representing a view result row. 79
ResultTest class Drupal\Tests\views\Unit\Plugin\area core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php @coversDefaultClass \Drupal\views\Plugin\views\area\Result[[api-linebreak]] @group views
RetrieveFileTest class Drupal\Tests\system\Functional\System core/modules/system/tests/src/Functional/System/RetrieveFileTest.php Tests HTTP file fetching and error handling.
ReverseContainer final class Drupal\Component\DependencyInjection core/lib/Drupal/Component/DependencyInjection/ReverseContainer.php Retrieves service IDs from the container for public services. 6

Other projects


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