Search for source

  1. Search 7.x for source
  2. Search 8.9.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
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/media/tests/src/Unit/ResourceTest.php @coversDefaultClass \Drupal\media\OEmbed\Resource
@group media
ResourceTest class core/modules/rest/tests/src/Functional/ResourceTest.php Tests the structure of a REST resource.
ResourceTest.php file core/modules/rest/tests/src/Functional/ResourceTest.php
ResourceTest.php file core/modules/media/tests/src/Unit/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.
ResourceTestBase class core/modules/rest/tests/src/Functional/ResourceTestBase.php Subclass this for every REST resource, every format and every auth provider.
ResourceTestBase class core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Subclass this for every JSON:API resource type.
ResourceTestBase.php file core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
ResourceTestBase.php file core/modules/rest/tests/src/Functional/ResourceTestBase.php
ResourceTestBase::$account property core/modules/rest/tests/src/Functional/ResourceTestBase.php The account to use for authentication, if any.
ResourceTestBase::$account property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The account to use for authentication.
ResourceTestBase::$anonymousUsersCanViewLabels property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Whether anonymous users can view labels of this resource type.
ResourceTestBase::$anotherEntity property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Another entity of the same type used for testing.
ResourceTestBase::$auth property core/modules/rest/tests/src/Functional/ResourceTestBase.php The authentication mechanism to use in this test.
ResourceTestBase::$entity property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The entity being tested.
ResourceTestBase::$entityStorage property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The entity storage.
ResourceTestBase::$entityTypeId property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The tested entity type.
ResourceTestBase::$firstCreatedEntityId property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The entity ID for the first created entity in testPost().
ResourceTestBase::$format property core/modules/rest/tests/src/Functional/ResourceTestBase.php The format to use in this test.
ResourceTestBase::$jsonApiMember property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The standard `jsonapi` top-level document member.
ResourceTestBase::$labelFieldName property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Specify which field is the 'label' field for testing a POST edge case.
ResourceTestBase::$mimeType property core/modules/rest/tests/src/Functional/ResourceTestBase.php The MIME type that corresponds to $format.
ResourceTestBase::$modules property core/modules/rest/tests/src/Functional/ResourceTestBase.php Modules to install.
ResourceTestBase::$modules property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Modules to enable.
ResourceTestBase::$newRevisionsShouldBeAutomatic property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Whether new revisions of updated entities should be created by default.
ResourceTestBase::$patchProtectedFieldNames property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The fields that are protected against modification during PATCH requests.
ResourceTestBase::$resourceConfigId property core/modules/rest/tests/src/Functional/ResourceTestBase.php The REST Resource Config entity ID under test (i.e. a resource type).
ResourceTestBase::$resourceConfigStorage property core/modules/rest/tests/src/Functional/ResourceTestBase.php The REST resource config entity storage.
ResourceTestBase::$resourceType property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The JSON:API resource type for the tested entity type plus bundle.
ResourceTestBase::$resourceTypeIsVersionable property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Whether the tested JSON:API resource is versionable.
ResourceTestBase::$resourceTypeName property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The name of the tested JSON:API resource type.
ResourceTestBase::$secondCreatedEntityId property core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The entity ID for the second created entity in testPost().

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