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
ResourceResponseTestTrait::toResourceResponses function core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php Maps an array of PSR responses to JSON:API ResourceResponses.
ResourceResponseTrait trait core/modules/rest/src/ResourceResponseTrait.php
ResourceResponseTrait.php file core/modules/rest/src/ResourceResponseTrait.php
ResourceResponseTrait::$responseData property core/modules/rest/src/ResourceResponseTrait.php Response data that should be serialized.
ResourceResponseTrait::getResponseData function core/modules/rest/src/ResourceResponseTrait.php Returns response data that should be serialized.
ResourceResponseValidator class core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Response subscriber that validates a JSON:API response.
ResourceResponseValidator.php file core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php
ResourceResponseValidator::$appRoot property core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php The application's root file path.
ResourceResponseValidator::$logger property core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php The JSON:API logger channel.
ResourceResponseValidator::$moduleHandler property core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php The module handler.
ResourceResponseValidator::$validator property core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php The schema validator.
ResourceResponseValidator::doValidateResponse function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Wraps validation in an assert to prevent execution in production.
ResourceResponseValidator::getSubscribedEvents function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php
ResourceResponseValidator::onResponse function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Validates JSON:API responses.
ResourceResponseValidator::setValidator function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Sets the validator service if available.
ResourceResponseValidator::validateResponse function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Validates a response against the JSON:API specification.
ResourceResponseValidator::validateSchema function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Validates a string against a JSON Schema. It logs any possible errors.
ResourceResponseValidator::__construct function core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php Constructs a ResourceResponseValidator object.
ResourceResponseValidatorTest class core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php @coversDefaultClass \Drupal\jsonapi\EventSubscriber\ResourceResponseValidator
@group jsonapi
ResourceResponseValidatorTest.php file core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php
ResourceResponseValidatorTest::$subscriber property core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php The subscriber under test.
ResourceResponseValidatorTest::createRequest function core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php Helper method to create a request object.
ResourceResponseValidatorTest::createResponse function core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php Helper method to create a resource response from arbitrary JSON.
ResourceResponseValidatorTest::setUp function core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php
ResourceResponseValidatorTest::testDoValidateResponse function core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php @covers ::doValidateResponse
ResourceResponseValidatorTest::testValidateResponse function core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php @covers ::validateResponse
@dataProvider validateResponseProvider
ResourceResponseValidatorTest::validateResponseProvider function core/modules/jsonapi/tests/src/Unit/EventSubscriber/ResourceResponseValidatorTest.php Provides test cases for testValidateResponse.
ResourceRoutes class core/modules/rest/src/Routing/ResourceRoutes.php Subscriber for REST-style routes.
ResourceRoutes.php file core/modules/rest/src/Routing/ResourceRoutes.php
ResourceRoutes::$logger property core/modules/rest/src/Routing/ResourceRoutes.php A logger instance.
ResourceRoutes::$manager property core/modules/rest/src/Routing/ResourceRoutes.php The plugin manager for REST plugins.
ResourceRoutes::$resourceConfigStorage property core/modules/rest/src/Routing/ResourceRoutes.php The REST resource config storage.
ResourceRoutes::getRoutesForResourceConfig function core/modules/rest/src/Routing/ResourceRoutes.php Provides all routes for a given REST resource config.
ResourceRoutes::getSubscribedEvents function core/modules/rest/src/Routing/ResourceRoutes.php
ResourceRoutes::onDynamicRouteEvent function core/modules/rest/src/Routing/ResourceRoutes.php Alters existing routes for a specific collection.
ResourceRoutes::__construct function core/modules/rest/src/Routing/ResourceRoutes.php Constructs a RouteSubscriber object.
ResourceTest class core/modules/rest/tests/src/Functional/ResourceTest.php Tests the structure of a REST resource.
ResourceTest class core/modules/media/tests/src/Unit/ResourceTest.php @coversDefaultClass \Drupal\media\OEmbed\Resource
@group media
ResourceTest.php file core/modules/media/tests/src/Unit/ResourceTest.php
ResourceTest.php file core/modules/rest/tests/src/Functional/ResourceTest.php
ResourceTest::$defaultTheme property core/modules/rest/tests/src/Functional/ResourceTest.php The theme to install as the default for testing.
ResourceTest::$entity property core/modules/rest/tests/src/Functional/ResourceTest.php The entity.
ResourceTest::$modules property core/modules/rest/tests/src/Functional/ResourceTest.php Modules to install.
ResourceTest::setDimensionsTestCases function core/modules/media/tests/src/Unit/ResourceTest.php Test cases for ::testSetDimensions.
ResourceTest::setUp function core/modules/rest/tests/src/Functional/ResourceTest.php
ResourceTest::testAuthentication function core/modules/rest/tests/src/Functional/ResourceTest.php Tests that a resource without authentication cannot be enabled.
ResourceTest::testFormats function core/modules/rest/tests/src/Functional/ResourceTest.php Tests that a resource without formats cannot be enabled.
ResourceTest::testSerializationClassIsOptional function core/modules/rest/tests/src/Functional/ResourceTest.php Tests that serialization_class is optional.
ResourceTest::testSetDimensions function core/modules/media/tests/src/Unit/ResourceTest.php @covers ::setDimensions
@dataProvider setDimensionsTestCases
ResourceTest::testUriPaths function core/modules/rest/tests/src/Functional/ResourceTest.php Tests that resource URI paths are formatted properly.

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