Search for source

  1. Search 7.x for source
  2. Search 9.5.x for source
  3. Search 8.9.x for source
  4. Search 10.3.x for source
  5. Other projects
Title Object type File name Summary
ResourceIdentifier::compare function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Compares ResourceIdentifier objects.
ResourceIdentifier::deduplicate function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Deduplicates an array of ResourceIdentifier objects.
ResourceIdentifier::fromEntity function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Creates a ResourceIdentifier object.
ResourceIdentifier::getArity function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Gets the ResourceIdentifier's arity.
ResourceIdentifier::getDataReferencePropertyName function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Helper method to determine which field item property contains an entity.
ResourceIdentifier::getId function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Gets the ResourceIdentifier's ID.
ResourceIdentifier::getMeta function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Gets the resource identifier objects metadata.
ResourceIdentifier::getResourceType function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Gets the resource identifier's JSON:API resource type.
ResourceIdentifier::getTypeName function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Gets the ResourceIdentifier's JSON:API resource type name.
ResourceIdentifier::getVirtualOrMissingResourceIdentifier function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Creates a ResourceIdentifier for a NULL or FALSE entity reference item.
ResourceIdentifier::hasArity function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Whether this ResourceIdentifier has an arity.
ResourceIdentifier::isDuplicate function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Determines if two ResourceIdentifiers are the same.
ResourceIdentifier::isParallel function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Determines if two ResourceIdentifiers identify the same resource object.
ResourceIdentifier::toResourceIdentifier function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Creates a ResourceIdentifier object.
ResourceIdentifier::toResourceIdentifiers function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Creates an array of ResourceIdentifier objects.
ResourceIdentifier::toResourceIdentifiersWithArityRequired function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Creates an array of ResourceIdentifier objects with arity on every value.
ResourceIdentifier::withArity function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Returns a copy of the given ResourceIdentifier with the given arity.
ResourceIdentifier::__construct function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php ResourceIdentifier constructor.
ResourceIdentifierInterface interface core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php An interface for identifying a related resource.
ResourceIdentifierInterface.php file core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php
ResourceIdentifierInterface::getId function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php Gets the resource identifier's ID.
ResourceIdentifierInterface::getResourceType function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php Gets the resource identifier's JSON:API resource type.
ResourceIdentifierInterface::getTypeName function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierInterface.php Gets the resource identifier's JSON:API resource type name.
ResourceIdentifierNormalizer class core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php Normalizes a Relationship according to the JSON:API specification.
ResourceIdentifierNormalizer.php file core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php
ResourceIdentifierNormalizer::$fieldManager property core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php The entity field manager.
ResourceIdentifierNormalizer::denormalize function core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php
ResourceIdentifierNormalizer::getSupportedTypes function core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php
ResourceIdentifierNormalizer::massageRelationshipInput function core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php Validates and massages the relationship input depending on the cardinality.
ResourceIdentifierNormalizer::normalize function core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php
ResourceIdentifierNormalizer::__construct function core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php RelationshipNormalizer constructor.
ResourceIdentifierNormalizerTest class core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php @coversDefaultClass \Drupal\jsonapi\Normalizer\ResourceIdentifierNormalizer
@group jsonapi
ResourceIdentifierNormalizerTest.php file core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php
ResourceIdentifierNormalizerTest::$normalizer property core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php The normalizer under test.
ResourceIdentifierNormalizerTest::$resourceType property core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php The base resource type for testing.
ResourceIdentifierNormalizerTest::denormalizeInvalidResourceProvider function core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php Data provider for the denormalize test.
ResourceIdentifierNormalizerTest::denormalizeProvider function core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php Data provider for the denormalize test.
ResourceIdentifierNormalizerTest::setUp function core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php
ResourceIdentifierNormalizerTest::testDenormalize function core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php @covers ::denormalize
@dataProvider denormalizeProvider
ResourceIdentifierNormalizerTest::testDenormalizeInvalidResource function core/modules/jsonapi/tests/src/Unit/Normalizer/ResourceIdentifierNormalizerTest.php @covers ::denormalize
@dataProvider denormalizeInvalidResourceProvider
ResourceIdentifierTrait trait core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php Used to associate an object like an exception to a particular resource.
ResourceIdentifierTrait.php file core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php
ResourceIdentifierTrait::$resourceIdentifier property core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php A ResourceIdentifier object.
ResourceIdentifierTrait::$resourceType property core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php The JSON:API resource type of the identified resource object.
ResourceIdentifierTrait::getId function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php
ResourceIdentifierTrait::getResourceType function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php
ResourceIdentifierTrait::getTypeName function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php
ResourceInterface interface core/modules/rest/src/Plugin/ResourceInterface.php Specifies the publicly available methods of a resource plugin.
ResourceInterface.php file core/modules/rest/src/Plugin/ResourceInterface.php
ResourceInterface::availableMethods function core/modules/rest/src/Plugin/ResourceInterface.php Returns the available HTTP request methods on this plugin.

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