Problem/Motivation
In #2756745: [Docs] Make media name optional and let media type plugins provide the default Media entity added support for default media name on type plugins. There is default implementation in the base class, but it would make sense to provide better defaults.
See #2762099: Provide default value for entity label, if needed. for example implementation in Image plugin.
Proposed resolution
There seems to be no good default for Slideshows. Maybe a label of first slide or something involving count of slides.
Comment | File | Size | Author |
---|---|---|---|
#4 | slideshow-default-name-2762215-4.patch | 865 bytes | marcoscano |
#4 | interdiff.txt | 799 bytes | marcoscano |
#2 | slideshow-default-name-2762215-2.patch | 690 bytes | marcoscano |
#2 | slideshow-default-name.png | 11.5 KB | marcoscano |
Comments
Comment #2
marcoscanoYes, it is hard to imagine a more meaningful name than the base class default, in this case.
I don't know if we can use labels from the slides because the slides themselves can be anything, will they always have a meaningful label?
What about using timestamp + number of slides?
Comment #3
slashrsm CreditAttribution: slashrsm at MD Systems GmbH for Acquia commentedIf we go down the timestamp route I think we should format it. Also, this should go through t().
Comment #4
marcoscanoSure! What about this option?
Comment #5
slashrsm CreditAttribution: slashrsm at MD Systems GmbH for Acquia commentedCommitted. Thanks!