trait ResourceResponseTrait in Drupal 9
Same name and namespace in other branches
- 8 core/modules/rest/src/ResourceResponseTrait.php \Drupal\rest\ResourceResponseTrait
- 10 core/modules/rest/src/ResourceResponseTrait.php \Drupal\rest\ResourceResponseTrait
Hierarchy
- trait \Drupal\rest\ResourceResponseTrait
File
- core/
modules/ rest/ src/ ResourceResponseTrait.php, line 5
Namespace
Drupal\restView source
trait ResourceResponseTrait {
/**
* Response data that should be serialized.
*
* @var mixed
*/
protected $responseData;
/**
* Returns response data that should be serialized.
*
* @return mixed
* Response data that should be serialized.
*/
public function getResponseData() {
return $this->responseData;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ResourceResponseTrait:: |
protected | property | Response data that should be serialized. | |
ResourceResponseTrait:: |
public | function | Returns response data that should be serialized. |