You are here

ResourceResponseInterface.php in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/rest/src/ResourceResponseInterface.php

Namespace

Drupal\rest

File

core/modules/rest/src/ResourceResponseInterface.php
View source
<?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();

}

Interfaces

Namesort descending Description
ResourceResponseInterface Defines a common interface for resource responses.