ResourceResponseTrait.php 384 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Drupal\rest;
  3. trait ResourceResponseTrait {
  4. /**
  5. * Response data that should be serialized.
  6. *
  7. * @var mixed
  8. */
  9. protected $responseData;
  10. /**
  11. * Returns response data that should be serialized.
  12. *
  13. * @return mixed
  14. * Response data that should be serialized.
  15. */
  16. public function getResponseData() {
  17. return $this->responseData;
  18. }
  19. }