Search for source
- Search 7.x for source
- Search 9.5.x for source
- Search 8.9.x for source
- Search 10.3.x for source
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
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/ |
Tests the response format. |
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. |
ResourceResponseTestTrait::toResourceResponses | function | core/ |
Maps an array of PSR responses to JSON:API ResourceResponses. |
ResourceResponseTrait | trait | core/ |
|
ResourceResponseTrait.php | file | core/ |
|
ResourceResponseTrait::$responseData | property | core/ |
Response data that should be serialized. |
ResourceResponseTrait::getResponseData | function | core/ |
Returns response data that should be serialized. |
ResourceResponseValidator | class | core/ |
Response subscriber that validates a JSON:API response. |
ResourceResponseValidator.php | file | core/ |
|
ResourceResponseValidator::$appRoot | property | core/ |
The application's root file path. |
ResourceResponseValidator::$logger | property | core/ |
The JSON:API logger channel. |
ResourceResponseValidator::$moduleHandler | property | core/ |
The module handler. |
ResourceResponseValidator::$validator | property | core/ |
The schema validator. |
ResourceResponseValidator::getSubscribedEvents | function | core/ |
|
ResourceResponseValidator::onResponse | function | core/ |
Validates JSON:API responses. |
ResourceResponseValidator::setValidator | function | core/ |
Sets the validator service if available. |
ResourceResponseValidator::validateResponse | function | core/ |
Validates a response against the JSON:API specification. |
ResourceResponseValidator::validateSchema | function | core/ |
Validates a string against a JSON Schema. It logs any possible errors. |
Pagination
- Previous page
- Page 32
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.