ResourceResponseInterface.php

Same filename in other branches
  1. 9 core/modules/rest/src/ResourceResponseInterface.php
  2. 8.9.x core/modules/rest/src/ResourceResponseInterface.php
  3. 11.x 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

Title Deprecated Summary
ResourceResponseInterface Defines a common interface for resource responses.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.