Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / blazy / blazy.views.inc
1 <?php
2
3 /**
4  * @file
5  * Provides views data for blazy.module.
6  */
7
8 /**
9  * Implements hook_views_data_alter().
10  */
11 function blazy_views_data_alter(&$data) {
12   $data['file_managed']['blazy_file'] = [
13     'title' => 'Blazy',
14     'help'  => t('Displays a preview of a File using Blazy, if applicable.'),
15     'field' => [
16       'id' => 'blazy_file',
17       'click sortable' => FALSE,
18     ],
19   ];
20
21   if (function_exists('video_embed_media_media_bundle_insert')) {
22     $data['media_field_data']['blazy_media'] = [
23       'title' => 'Blazy',
24       'help'  => t('Displays a preview of a Media using Blazy, if applicable.'),
25       'field' => [
26         'id' => 'blazy_media',
27         'click sortable' => FALSE,
28       ],
29     ];
30   }
31 }
32
33 /**
34  * Implements hook_views_plugins_style_alter().
35  */
36 function blazy_views_plugins_style_alter(array &$plugins) {
37   $plugins['blazy'] = [
38     'id'             => 'blazy',
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.'),
44     'parent'         => 'parent',
45     'plugin_type'    => 'style',
46     'register_theme' => FALSE,
47     'short_title'    => 'Blazy',
48     'title'          => 'Blazy Grid',
49     'provider'       => 'blazy',
50   ];
51 }