Initial Drupal 11 with DDEV setup
This commit is contained in:
27
web/core/modules/rest/src/ResourceResponseTrait.php
Normal file
27
web/core/modules/rest/src/ResourceResponseTrait.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\rest;
|
||||
|
||||
/**
|
||||
* Provides a trait for accessing response data that should be serialized.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user