You are here

9 calls to ResourceObject::createFromEntity() in Drupal 9

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.
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