interface ResourceResponseInterface in Drupal 10
Same name and namespace in other branches
- 8 core/modules/rest/src/ResourceResponseInterface.php \Drupal\rest\ResourceResponseInterface
- 9 core/modules/rest/src/ResourceResponseInterface.php \Drupal\rest\ResourceResponseInterface
Defines a common interface for resource responses.
Hierarchy
- interface \Drupal\rest\ResourceResponseInterface
Expanded class hierarchy of ResourceResponseInterface
All classes that implement ResourceResponseInterface
3 files declare their use of ResourceResponseInterface
- EntityResourceTestBase.php in core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ EntityResourceTestBase.php - ResourceResponseSubscriber.php in core/
modules/ rest/ src/ EventSubscriber/ ResourceResponseSubscriber.php - ResourceResponseSubscriberTest.php in core/
modules/ rest/ tests/ src/ Unit/ EventSubscriber/ ResourceResponseSubscriberTest.php
File
- core/
modules/ rest/ src/ ResourceResponseInterface.php, line 8
Namespace
Drupal\restView source
interface ResourceResponseInterface {
/**
* Returns response data that should be serialized.
*
* @return mixed
* Response data that should be serialized.
*/
public function getResponseData();
}