This issue is spun off from #390 in #2831274: Bring Media entity module to core as Media module. Specifically, this point of review:
Remove forced validation in Media::preSave() and file a followup to discuss presave validation for Media and/or for entities in general
This is really just a placeholder for further discussion, plus a possible patch, but I guess I'll take a stab at listing the points of contention and discussion:
- Should media items validate themselves (partially, at least) in their preSave() method?
- Should other entity types do this too?
- Is this the sort of thing that only entities which depend on plugin logic (as media items do, with media source plugins) should do?
- If code needs to be written, can it be done generically? Should it be?
All this, and more, we can determine once #2831274: Bring Media entity module to core as Media module lands. Postponed for now.
Comments
Comment #2
phenaproximaFixing a bit of phrasing in the IS :)
Comment #3
phenaproxima#2831274: Bring Media entity module to core as Media module landed, so this is no longer postponed.
Comment #16
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!