16 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.
JsonApiTopLevelResourceNormalizerTest::getTestConfigEntityResource in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Get a test resource type, resource object and includes for config entity.
JsonApiTopLevelResourceNormalizerTest::getTestContentEntityResource in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Get a test resource type, resource object and includes.
JsonApiTopLevelResourceNormalizerTest::testAliasFieldRouteException in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Tests the message and exceptions when requesting a Label only resource.
JsonApiTopLevelResourceNormalizerTest::testCacheableMetadata in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Ensure that cacheability metadata is properly added.
JsonApiTopLevelResourceNormalizerTest::testNormalizeConfig in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Tests normalize config.
JsonApiTopLevelResourceNormalizerTest::testNormalizeUuid in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Tests normalize uuid.
RelationshipNormalizerTest::testNormalize in core/modules/jsonapi/tests/src/Kernel/Normalizer/RelationshipNormalizerTest.php
Tests normalize.
ResourceObjectNormalizerCacherTest::testLinkNormalizationCacheability in core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php
Tests that link normalization cache information is not lost.
ResourceObjectNormalizerCacherTest::testMaxAgeCorrection in core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php
Tests that normalization max-age is correct.
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
Tests fallback normalizer.

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