Problem/Motivation
Spun-off from #2878119: Whether queued or not, update the media thumbnail and metadata before beginning the entity save database transaction.
On that issue, we identified that in many places it may make sense to let end users trigger / force an immediate update of the asset's metadata.
Proposed resolution
Expose to the UI the possibility of end users with correct permissions to trigger an immediate update of the asset's metadata + thumbnail
Remaining tasks
User interface changes
- New contextual link "Update metadata" is available in the front-end
- New operation dropbutton "Update metadata" is available in the back-end
- New "Update metadata" action is available in media administrative views, as a bulk operation.
API changes
A new public method \Drupal\media\MediaInterface::updateMetadata()
is added to the Media interface.
Data model changes
None