Search for source

  1. Search 7.x for source
  2. Search 9.5.x for source
  3. Search 10.3.x for source
  4. Search 11.x for source
  5. Other projects
Title Object type File name Summary
ResourceResponseSubscriber::$routeMatch property core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php The current route match.
ResourceResponseSubscriber::$serializer property core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php The serializer.
ResourceResponseSubscriber::$serializer property core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php The serializer.
ResourceResponseSubscriber::flattenResponse function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php Flattens a fully rendered resource response.
ResourceResponseSubscriber::flattenResponse function core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php Flattens a fully rendered resource response.
ResourceResponseSubscriber::generateContext function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php Generates a top-level JSON:API normalization context.
ResourceResponseSubscriber::getResponseFormat function core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php Determines the format to respond in.
ResourceResponseSubscriber::getSubscribedEvents function core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php
ResourceResponseSubscriber::getSubscribedEvents function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php
ResourceResponseSubscriber::onResponse function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php Serializes ResourceResponse responses' data, and removes that data.
ResourceResponseSubscriber::onResponse function core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php Serializes ResourceResponse responses' data, and removes that data.
ResourceResponseSubscriber::renderResponseBody function core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php Renders a resource response body.
ResourceResponseSubscriber::renderResponseBody function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php Renders a resource response body.
ResourceResponseSubscriber::__construct function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php Constructs a ResourceResponseSubscriber object.
ResourceResponseSubscriber::__construct function core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php Constructs a ResourceResponseSubscriber object.
ResourceResponseSubscriberTest class core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php @coversDefaultClass \Drupal\rest\EventSubscriber\ResourceResponseSubscriber
@group rest
ResourceResponseSubscriberTest.php file core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php
ResourceResponseSubscriberTest::generateRouteRequirements function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php Generates route requirements based on supported formats.
ResourceResponseSubscriberTest::getFunctioningResourceResponseSubscriber function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php
ResourceResponseSubscriberTest::providerTestResponseFormat function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php
ResourceResponseSubscriberTest::providerTestSerialization function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php
ResourceResponseSubscriberTest::testOnResponseWithCacheableResponse function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php @covers ::onResponse
@covers ::getResponseFormat
@covers ::renderResponseBody
@covers ::flattenResponse
ResourceResponseSubscriberTest::testOnResponseWithUncacheableResponse function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php @covers ::onResponse
@covers ::getResponseFormat
@covers ::renderResponseBody
@covers ::flattenResponse
ResourceResponseSubscriberTest::testResponseFormat function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php @covers ::getResponseFormat
ResourceResponseSubscriberTest::testSerialization function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php @covers ::onResponse
@dataProvider providerTestSerialization
ResourceResponseTestTrait trait core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Utility methods for handling resource responses.
ResourceResponseTestTrait.php file core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php
ResourceResponseTestTrait::addOmittedObject function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Add the omitted object to the document or merges it if one already exists.
ResourceResponseTestTrait::collectionHasResourceIdentifier function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Determines if a given resource exists in a list of resources.
ResourceResponseTestTrait::errorsToOmittedObject function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Maps error objects into an omitted object.
ResourceResponseTestTrait::extractLinks function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Extracts links from a document using a list of relationship field names.
ResourceResponseTestTrait::getAccessDeniedResponse function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Gets a generic forbidden response.
ResourceResponseTestTrait::getEmptyCollectionResponse function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Gets a generic empty collection response.
ResourceResponseTestTrait::getExpectedIncludedResourceResponse function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Gets an array of expected ResourceResponses for the given include paths.
ResourceResponseTestTrait::getLinkPaths function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Turns a list of relationship field names into an array of link paths.
ResourceResponseTestTrait::getRelatedLink function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Creates a related resource link for a given resource identifier and field.
ResourceResponseTestTrait::getRelatedResponses function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Gets an array of related responses for the given field names.
ResourceResponseTestTrait::getRelationshipLink function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Creates a relationship link for a given resource identifier and field.
ResourceResponseTestTrait::getRelationshipResponses function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Gets an array of relationship responses for the given field names.
ResourceResponseTestTrait::getResourceLink function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Creates an individual resource link for a given resource identifier.
ResourceResponseTestTrait::getResourceLinks function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Creates individual resource links for a list of resource identifiers.
ResourceResponseTestTrait::getResponses function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Gets responses from an array of links.
ResourceResponseTestTrait::isResourceIdentifier function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Checks if a given array is a resource identifier.
ResourceResponseTestTrait::mergeOmittedObjects function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Merges the links of two omitted objects and returns a new omitted object.
ResourceResponseTestTrait::resetOmittedLinkKeys function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Resets omitted link keys.
ResourceResponseTestTrait::sortOmittedLinks function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Sorts an omitted link object array by href.
ResourceResponseTestTrait::sortResourceCollection function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Sorts a collection of resources or resource identifiers.
ResourceResponseTestTrait::toCollectionResourceResponse function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Merges individual responses into a collection response.
ResourceResponseTestTrait::toResourceIdentifier function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Maps an entity to a resource identifier.
ResourceResponseTestTrait::toResourceResponse function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Maps a response object to a JSON:API ResourceResponse.

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