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 |
---|---|---|---|
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. |
ResourceRoutes | class | core/ |
Subscriber for REST-style routes. |
ResourceRoutes.php | file | core/ |
|
ResourceRoutes::$logger | property | core/ |
A logger instance. |
ResourceRoutes::$manager | property | core/ |
The plugin manager for REST plugins. |
ResourceRoutes::$resourceConfigStorage | property | core/ |
The REST resource config storage. |
ResourceRoutes::getRoutesForResourceConfig | function | core/ |
Provides all routes for a given REST resource config. |
ResourceRoutes::getSubscribedEvents | function | core/ |
|
ResourceRoutes::onDynamicRouteEvent | function | core/ |
Alters existing routes for a specific collection. |
ResourceRoutes::__construct | function | core/ |
Constructs a RouteSubscriber object. |
ResourceTest | class | core/ |
Tests the structure of a REST resource. |
ResourceTest | class | core/ |
@coversDefaultClass \Drupal\media\OEmbed\Resource @group media |
ResourceTest.php | file | core/ |
|
ResourceTest.php | file | core/ |
|
ResourceTest::$defaultTheme | property | core/ |
The theme to install as the default for testing. |
ResourceTest::$entity | property | core/ |
The entity. |
ResourceTest::$modules | property | core/ |
Modules to install. |
ResourceTest::setDimensionsTestCases | function | core/ |
Test cases for ::testSetDimensions. |
ResourceTest::setUp | function | core/ |
|
ResourceTest::testAuthentication | function | core/ |
Tests that a resource without authentication cannot be enabled. |
ResourceTest::testFormats | function | core/ |
Tests that a resource without formats cannot be enabled. |
ResourceTest::testSerializationClassIsOptional | function | core/ |
Tests that serialization_class is optional. |
ResourceTest::testSetDimensions | function | core/ |
@covers ::setDimensions @dataProvider setDimensionsTestCases |
ResourceTest::testUriPaths | function | core/ |
Tests that resource URI paths are formatted properly. |
Pagination
- Previous page
- Page 34
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.