5 * Provides views data for blazy.module.
9 * Implements hook_views_data_alter().
11 function blazy_views_data_alter(&$data) {
12 $data['file_managed']['blazy_file'] = [
14 'help' => t('Displays a preview of a File using Blazy, if applicable.'),
17 'click sortable' => FALSE,
21 if (function_exists('video_embed_media_media_bundle_insert')) {
22 $data['media_field_data']['blazy_media'] = [
24 'help' => t('Displays a preview of a Media using Blazy, if applicable.'),
26 'id' => 'blazy_media',
27 'click sortable' => FALSE,
34 * Implements hook_views_plugins_style_alter().
36 function blazy_views_plugins_style_alter(array &$plugins) {
39 'label' => 'Blazy Grid',
40 'description' => t('Display the results in a Blazy grid.'),
41 'class' => 'Drupal\blazy\Plugin\views\style\BlazyViews',
42 'display_types' => ['normal'],
43 'help' => t('Works best with Views field containing Blazy.'),
45 'plugin_type' => 'style',
46 'register_theme' => FALSE,
47 'short_title' => 'Blazy',
48 'title' => 'Blazy Grid',
49 'provider' => 'blazy',