You are here

function file_browser_views_data_alter in File Entity Browser 8

Implements hook_views_data_alter().

File

./file_browser.views.inc, line 11
Provide custom views data for rendering file previews.

Code

function file_browser_views_data_alter(&$data) {
  $data['file_managed']['file_browser_preview'] = [
    'title' => t('File Browser Preview'),
    'help' => t('Displays a preview of a file.'),
    'field' => [
      'id' => 'file_browser_preview',
    ],
  ];
}