You are here

trait ResourceResponseTrait in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/rest/src/ResourceResponseTrait.php \Drupal\rest\ResourceResponseTrait

Hierarchy

File

core/modules/rest/src/ResourceResponseTrait.php, line 5

Namespace

Drupal\rest
View 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

Namesort descending Modifiers Type Description Overrides
ResourceResponseTrait::$responseData protected property Response data that should be serialized.
ResourceResponseTrait::getResponseData public function Returns response data that should be serialized.