Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal