- πΊπΈUnited States glynster
This patch is so useful great job @lamp5 +1 RTBC
Right now there is no way to edit media thumbnail when media thumbnails module is enabled.
We can enable thumbnail field, to be accessible by media edit form using
function mymodule_entity_base_field_info_alter(&$fields, EntityTypeInterface $entity_type) {
if ($entity_type->id() == 'media') {
// Allow uploading or removing the thumbnail image.
$fields['thumbnail']->setDisplayConfigurable('form', TRUE);
}
}
Media thumbnails module invokes on hook ENTITY_TYPE_presave, so everytime when we want to edit our thumbnail, setup image alt etc, it is impossible because manager override our changes. The second use case where it is impossible is during media import.
We should provide a way to skip update media thumbnail.
#
#
#
#
#
Need to overwrite some of the posters... #3137079: Need to overwrite some of the posters... β
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This patch is so useful great job @lamp5 +1 RTBC