14 calls to ResourceObject::createFromEntity()
- EntityAccessChecker::getAccessCheckedResourceObject in core/
modules/ jsonapi/ src/ Access/ EntityAccessChecker.php - Get the object to normalize and the access based on the provided entity.
- EntityResource::createIndividual in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - Creates an individual entity.
- EntityResource::getRelationship in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - Gets the relationship of an entity.
- EntityResource::patchIndividual in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - Patches an individual entity.
- FileUpload::handleFileUploadForNewResource in core/
modules/ jsonapi/ src/ Controller/ FileUpload.php - Handles JSON:API file upload requests.
- JsonApiDocumentTopLevelNormalizerTest::testAliasFieldRouteException in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - Tests the message and exceptions when requesting a Label only resource.
- JsonApiDocumentTopLevelNormalizerTest::testCacheableMetadata in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - Ensure that cacheability metadata is properly added.
- JsonApiDocumentTopLevelNormalizerTest::testNormalize in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - @covers ::normalize
- JsonApiDocumentTopLevelNormalizerTest::testNormalizeConfig in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - @covers ::normalize
- JsonApiDocumentTopLevelNormalizerTest::testNormalizeUuid in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - @covers ::normalize
- RelationshipNormalizerTest::testNormalize in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ RelationshipNormalizerTest.php - @covers ::normalize @dataProvider normalizeProvider
- ResourceObjectNormalizerCacherTest::testLinkNormalizationCacheability in core/
modules/ jsonapi/ tests/ src/ Kernel/ EventSubscriber/ ResourceObjectNormalizerCacherTest.php - Tests that link normalization cache information is not lost.
- ResourceTestBase::normalize in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Generates a JSON:API normalization for the given entity.
- SerializerTest::testFallbackNormalizer in core/
modules/ jsonapi/ tests/ src/ Kernel/ Serializer/ SerializerTest.php - @covers \Drupal\jsonapi\Serializer\Serializer::normalize
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.