Search for source
- Search 7.x for source
- Search 8.9.x for source
- Search 10.3.x for source
- Search 11.x for source
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
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::doValidateResponse | function | core/ |
Wraps validation in an assert to prevent execution in production. |
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. |
ResourceResponseValidator::__construct | function | core/ |
Constructs a ResourceResponseValidator object. |
ResourceResponseValidatorTest | class | core/ |
@coversDefaultClass \Drupal\jsonapi\EventSubscriber\ResourceResponseValidator @group jsonapi |
ResourceResponseValidatorTest.php | file | core/ |
|
ResourceResponseValidatorTest::$subscriber | property | core/ |
The subscriber under test. |
ResourceResponseValidatorTest::createRequest | function | core/ |
Helper method to create a request object. |
ResourceResponseValidatorTest::createResponse | function | core/ |
Helper method to create a resource response from arbitrary JSON. |
ResourceResponseValidatorTest::setUp | function | core/ |
|
ResourceResponseValidatorTest::testDoValidateResponse | function | core/ |
@covers ::doValidateResponse |
ResourceResponseValidatorTest::testValidateResponse | function | core/ |
@covers ::validateResponse @dataProvider validateResponseProvider |
ResourceResponseValidatorTest::validateResponseProvider | function | core/ |
Provides test cases for testValidateResponse. |
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.