Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / blazy / blazy.module
index 252c389457abee3dada0c8a1d70865b7ef1831c6..59b1ff7532409b5b692dd273124bbb1ece8333be 100644 (file)
@@ -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'),