You are here

interface ResourceResponseInterface in Drupal 8

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

Defines a common interface for resource responses.

Hierarchy

Expanded class hierarchy of ResourceResponseInterface

All classes that implement ResourceResponseInterface

3 files declare their use of ResourceResponseInterface
EntityResourceTestBase.php in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
ResourceResponseSubscriber.php in core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php
ResourceResponseSubscriberTest.php in core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php

File

core/modules/rest/src/ResourceResponseInterface.php, line 8

Namespace

Drupal\rest
View source
interface ResourceResponseInterface {

  /**
   * Returns response data that should be serialized.
   *
   * @return mixed
   *   Response data that should be serialized.
   */
  public function getResponseData();

}

Members

Namesort descending Modifiers Type Description Overrides
ResourceResponseInterface::getResponseData public function Returns response data that should be serialized.