You are here

function select_translation_views_data_alter in Select translation 8

Same name and namespace in other branches
  1. 7 select_translation.views.inc \select_translation_views_data_alter()

Implements hook_views_data_alter().

File

./select_translation.views.inc, line 11
Views related hooks.

Code

function select_translation_views_data_alter(array &$data) {
  $data['node_field_data']['select_translation'] = [
    'title' => t('Select translation'),
    'filter' => [
      'title' => t('Select translation'),
      'help' => t('Select which translation of a node should be displayed'),
      'field' => 'nid',
      'id' => 'select_translation_filter',
    ],
  ];
}