You are here

function file_replace_views_data in File Replace (D8) 8

Implements hook_views_data().

Views integration of file_replace.

File

./file_replace.module, line 23
File replace functionality.

Code

function file_replace_views_data() {
  $data['file_managed']['file_replace_link'] = [
    'field' => [
      'title' => t('Link to replace file'),
      'help' => t('Provide a link to replace the file.'),
      'id' => 'file_replace_link',
    ],
  ];
  return $data;
}