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
ResourceTestBase::getPatchDocument function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Returns the JSON:API PATCH document.
ResourceTestBase::getPostDocument function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Returns the JSON:API POST document.
ResourceTestBase::getRelationshipFieldNames function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Gets a list of public relationship names for the resource type under test.
ResourceTestBase::getSparseFieldSets function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Returns an array of sparse fields sets to test.
ResourceTestBase::grantIncludedPermissions function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Grants authorization to view includes.
ResourceTestBase::grantPermissionsToAnonymousRole function core/modules/rest/tests/src/Functional/ResourceTestBase.php Grants permissions to the anonymous role.
ResourceTestBase::grantPermissionsToAuthenticatedRole function core/modules/rest/tests/src/Functional/ResourceTestBase.php Grants permissions to the authenticated role.
ResourceTestBase::grantPermissionsToTestedRole function core/modules/rest/tests/src/Functional/ResourceTestBase.php Grants permissions to the tested role: anonymous or authenticated.
ResourceTestBase::grantPermissionsToTestedRole function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Grants permissions to the authenticated role.
ResourceTestBase::initAuthentication function core/modules/rest/tests/src/Functional/ResourceTestBase.php Initializes authentication.
ResourceTestBase::isReferenceFieldDefinition function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Determines if a given field definition is a reference field.
ResourceTestBase::makeNormalizationInvalid function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Makes the given JSON:API document invalid.
ResourceTestBase::normalize function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Generates a JSON:API normalization for the given entity.
ResourceTestBase::provisionResource function core/modules/rest/tests/src/Functional/ResourceTestBase.php Provisions the REST resource under test.
ResourceTestBase::recursiveKSort function core/modules/rest/tests/src/Functional/ResourceTestBase.php Recursively sorts an array by key.
ResourceTestBase::recursiveKsort function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Recursively sorts an array by key.
ResourceTestBase::refreshTestStateAfterRestConfigChange function core/modules/rest/tests/src/Functional/ResourceTestBase.php Refreshes the state of the tester to be in sync with the testee.
ResourceTestBase::removeResourceTypeFromDocument function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Makes the JSON:API document violate the spec by omitting the resource type.
ResourceTestBase::request function core/modules/rest/tests/src/Functional/ResourceTestBase.php Performs a HTTP request. Wraps the Guzzle HTTP client.
ResourceTestBase::revokePermissionsFromTestedRole function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Revokes permissions from the authenticated role.
ResourceTestBase::setUp function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
ResourceTestBase::setUp function core/modules/rest/tests/src/Functional/ResourceTestBase.php
ResourceTestBase::setUpAuthorization function core/modules/rest/tests/src/Functional/ResourceTestBase.php Sets up the necessary authorization.
ResourceTestBase::setUpAuthorization function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Sets up the necessary authorization.
ResourceTestBase::setUpFields function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Sets up additional fields for testing.
ResourceTestBase::setUpRevisionAuthorization function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Sets up the necessary authorization for handling revisions.
ResourceTestBase::testCollection function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests GETting a collection of resources.
ResourceTestBase::testDeleteIndividual function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests DELETEing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::testGetIndividual function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests GETting an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::testPatchIndividual function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests PATCHing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::testPostIndividual function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests POSTing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::testRelated function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests GET of the related resource of an individual resource.
ResourceTestBase::testRelationships function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests CRUD of individual resource relationship data.
ResourceTestBase::testRevisions function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Tests individual and collection revisions.
ResourceType class core/modules/jsonapi/src/ResourceType/ResourceType.php Value object containing all metadata for a JSON:API resource type.
ResourceType.php file core/modules/jsonapi/src/ResourceType/ResourceType.php
ResourceType::$bundle property core/modules/jsonapi/src/ResourceType/ResourceType.php The bundle ID.
ResourceType::$deserializationTargetClass property core/modules/jsonapi/src/ResourceType/ResourceType.php The class to which a payload converts to.
ResourceType::$entityTypeId property core/modules/jsonapi/src/ResourceType/ResourceType.php The entity type ID.
ResourceType::$fieldMapping property core/modules/jsonapi/src/ResourceType/ResourceType.php The mapping for field aliases: keys=public names, values=internal names.
ResourceType::$fields property core/modules/jsonapi/src/ResourceType/ResourceType.php The list of fields on the underlying entity type + bundle.
ResourceType::$internal property core/modules/jsonapi/src/ResourceType/ResourceType.php Whether this resource type is internal.
ResourceType::$isLocatable property core/modules/jsonapi/src/ResourceType/ResourceType.php Whether this resource type's resources are locatable.
ResourceType::$isMutable property core/modules/jsonapi/src/ResourceType/ResourceType.php Whether this resource type's resources are mutable.
ResourceType::$isVersionable property core/modules/jsonapi/src/ResourceType/ResourceType.php Whether this resource type's resources are versionable.
ResourceType::$relatableResourceTypesByField property core/modules/jsonapi/src/ResourceType/ResourceType.php An array of arrays of relatable resource types, keyed by public field name.
ResourceType::$typeName property core/modules/jsonapi/src/ResourceType/ResourceType.php The type name.
ResourceType::getBundle function core/modules/jsonapi/src/ResourceType/ResourceType.php Gets the bundle.
ResourceType::getDeserializationTargetClass function core/modules/jsonapi/src/ResourceType/ResourceType.php Gets the deserialization target class.
ResourceType::getEntityTypeId function core/modules/jsonapi/src/ResourceType/ResourceType.php Gets the entity type ID.

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