Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / media_library / media_library.views.inc
diff --git a/web/core/modules/media_library/media_library.views.inc b/web/core/modules/media_library/media_library.views.inc
new file mode 100644 (file)
index 0000000..7d1ead4
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * @file
+ * Contains Views integration for the media_library module.
+ */
+
+/**
+ * Implements hook_views_data().
+ */
+function media_library_views_data() {
+  $data = [];
+  $data['media']['media_library_select_form'] = [
+    'title' => t('Select media'),
+    'help' => t('Provides a field for selecting media entities in our media library view'),
+    'real field' => 'mid',
+    'field' => [
+      'id' => 'media_library_select_form',
+    ],
+  ];
+  return $data;
+}