Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently Entity doesn't support the creation callback for files. This means that files aren't properly supported by deploy.
Patch coming right up.
Comment | File | Size | Author |
---|---|---|---|
#9 | entity-1741028-1-file-creation-callback.patch | 617 bytes | dasha_v |
#1 | entity-1741028-file-creation-callback.patch | 868 bytes | skwashd |
Comments
Comment #1
skwashd CreditAttribution: skwashd commentedHere is the patch.
Comment #3
lucascaro CreditAttribution: lucascaro commentedAs an alternative, the patch from #1778484: UUID Services for file should not use the update method. for uuid adds support for creating files.
Comment #4
fmizzell CreditAttribution: fmizzell commentedThis patch works, at least in conjunction with media and file entity. The failing test has something to do with file deletion (did not look at it closely), but manually deleting a file through the media dashboard works fine.
Comment #5
joseph.olstadThis was already committed to the entity.module
7.x-1.6 already has this patch applied.
Comment #6
joseph.olstadThanks ! I'm going to do this.
Comment #7
dasha_v CreditAttribution: dasha_v at FFW commentedNo, it is not included in 1.6. See http://cgit.drupalcode.org/entity/tree/entity.module?h=7.x-1.6#n1505
Only nodes and users have creation callback. File entity is missing it.
Comment #8
joseph.olstadOops I was pulling long hours, might have mixed up my issues. Follow up asap
Comment #9
dasha_v CreditAttribution: dasha_v at FFW commentedUpload re-formatted patch for testing.