Skip to content
Snippets Groups Projects
Commit 48b38887 authored by Mike Stivaktakis's avatar Mike Stivaktakis Committed by Florent Torregrosa
Browse files

Issue #3088307 by msti, Grimreaper: Compatibility with file_entity module

parent 229450f0
No related branches found
Tags 7.x-1.0-beta3
No related merge requests found
......@@ -336,8 +336,8 @@ class JsonapiHelper implements JsonapiHelperInterface {
public function handlePhysicalFiles(ContentEntityInterface $entity, array &$data) {
if ($entity instanceof FileInterface) {
$resource_type = $this->resourceTypeRepository->get(
'file',
'file'
$entity->getEntityTypeId(),
$entity->bundle()
);
$uri_public_name = $resource_type->getPublicName('uri');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment