When a file is formatted in the context of a referencing entity, it can known about that entity using $file->referencing_entity. But without the type of that entity, there is little one can do with it.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | file_entity-referencing_entity_type-2333107-1.patch | 929 bytes | pbuyle |
Comments
Comment #1
pbuyle commentedThe attached patch provides the type of the referencing entity as
$file->referencing_entity_type.Comment #2
devin carlson commentedThat makes sense to me!
Tested and committed to File Entity 7.x-2.x.