Closed (fixed)
Project:
File Download
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2017 at 09:43 UTC
Updated:
2 Sep 2018 at 01:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
NewZeal commentedI've made it so that the error does not occur and when there is no title, the 'title' becomes the file name with a message to change the settings if that is not suitable. This is pushed to dev and will be released soon with the next release.
Comment #4
adinac commentedI've created a patch that uses the label() method to get the entity title.
Comment #5
NewZeal commentedWill that method work for all entities though?
Comment #6
seanbThe label() method is on
\Drupal\Core\Entity\EntityInterface, so yes, that works for all entities.I think #4 is good. One thing to check before RTBC though. The name/title/label of an entity is required in the UI, but could be an empty value when an entity is created programmatically. Is this something that should be handled?
Comment #8
NewZeal commentedPatch committed and push to dev branch. Please test.
Comment #9
NewZeal commented