function blazy_views_data_alter in Blazy 7
Same name and namespace in other branches
- 8.2 blazy.views.inc \blazy_views_data_alter()
- 8 blazy.views.inc \blazy_views_data_alter()
Implements hook_views_data_alter().
File
- ./blazy.views.inc, line 11 
- Provides views data for blazy.module.
Code
function blazy_views_data_alter(&$data) {
  $data['file_managed']['blazy_file'] = [
    'title' => 'Blazy',
    'help' => t('Displays a File entity using Blazy, if applicable. Suitable for huge galleries.'),
    'field' => [
      'id' => 'blazy_file',
      'click sortable' => FALSE,
      'handler' => 'Drupal\\blazy\\Plugin\\views\\field\\BlazyViewsFieldFile',
    ],
  ];
}