You are here

ResourceResponseInterface.php in Drupal 10

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.