X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fblazy%2Fblazy.module;fp=web%2Fmodules%2Fcontrib%2Fblazy%2Fblazy.module;h=59b1ff7532409b5b692dd273124bbb1ece8333be;hp=252c389457abee3dada0c8a1d70865b7ef1831c6;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/blazy/blazy.module b/web/modules/contrib/blazy/blazy.module index 252c38945..59b1ff753 100644 --- a/web/modules/contrib/blazy/blazy.module +++ b/web/modules/contrib/blazy/blazy.module @@ -80,8 +80,7 @@ function blazy_field_formatter_info_alter(array &$info) { 'quickedit' => ['editor' => 'disabled'], 'provider' => 'blazy', ]; - - if (function_exists('video_embed_media_media_bundle_insert')) { + if (\Drupal::moduleHandler()->moduleExists('video_embed_media')) { $info['blazy_file'] = $common + [ 'id' => 'blazy_file', 'label' => t('Blazy Image with Media'),