You are here

ResourceResponseTrait.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/rest/src/ResourceResponseTrait.php

Namespace

Drupal\rest

File

core/modules/rest/src/ResourceResponseTrait.php
View source
<?php

namespace Drupal\rest;

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;
  }

}

Traits