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