summaryrefslogtreecommitdiffstats
path: root/core/modules/rest/src/ResourceResponseInterface.php
blob: e52cf517bb354f58c97b956c9741d36c8b9e23ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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();

}