function _cookies_video_preprocess_field_item_blazy_oembed in COOKiES Consent Management 1.0.x
Handling field_item from blazy_oembed formatter.
1 call to _cookies_video_preprocess_field_item_blazy_oembed()
- _cookies_video_media_oembed_handler in modules/
cookies_video/ cookies_video.module - Handling oembed and blazy_oembed field formatters.
File
- modules/
cookies_video/ cookies_video.module, line 101 - Contains cookies_video.module.
Code
function _cookies_video_preprocess_field_item_blazy_oembed(&$item) {
// Hide the blazy preview by default and set marker class.
// This has to be done in ['#build'] for blazy to take effect:
$item["content"]["#build"]['attributes']["class"][] = 'hidden';
$item["content"]["#build"]['attributes']["class"][] = 'cookies-video-blazy-oembed';
}