ResourceResponseInterface.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\restFile
core/modules/rest/src/ResourceResponseInterface.phpView source
<?php
namespace Drupal\rest;
/**
* Defines a common interface for resource responses.
*/
interface ResourceResponseInterface {
/**
* Returns response data that should be serialized.
*
* @return mixed
* Response data that should be serialized.
*/
public function getResponseData();
}
Interfaces
Name | Description |
---|---|
ResourceResponseInterface | Defines a common interface for resource responses. |