Account created on 1 January 2021, almost 4 years ago
#

Recent comments

🇮🇳India lakhan Thakur

I solved this issue by

/**
* Implements hook_preprocess_HOOK().
*/

function theme_name_preprocess_media(&$variables) {
// Fixing the media missed the quick edit attribute.
if (!empty($variables["elements"]["#media"])) {
$media = $variables["elements"]["#media"];
$type = $media->getEntityType()->id();
$id = $media->id();

if (!isset($variables['attributes']['data-quickedit-entity-id'])) {
$variables['attributes']['data-quickedit-entity-id'] = $type . '/' . $id;
}
}
}

Thanks

Production build 0.71.5 2024