Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / blazy / blazy.views.inc
index c1fbec3c882e5aee47a6bdde964a9a1c6b6ba21a..8d1246a420536f42dc9efa86a9fb2d8139fca543 100644 (file)
@@ -17,8 +17,7 @@ function blazy_views_data_alter(&$data) {
       'click sortable' => FALSE,
     ],
   ];
-
-  if (function_exists('video_embed_media_media_bundle_insert')) {
+  if (\Drupal::moduleHandler()->moduleExists('video_embed_media')) {
     $data['media_field_data']['blazy_media'] = [
       'title' => 'Blazy',
       'help'  => t('Displays a preview of a Media using Blazy, if applicable.'),