trait 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
| Title Sort descending | Modifiers | Object type | Summary | 
|---|---|---|---|
| ResourceResponseTrait::$responseData | protected | property | Response data that should be serialized. | 
| ResourceResponseTrait::getResponseData | public | function | Returns response data that should be serialized. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.