You are here

function drupal_slider_views_data in Drupal Slider 8

Same name and namespace in other branches
  1. 8.2 drupal_slider.views.inc \drupal_slider_views_data()

Implements hook_views_data().

File

./drupal_slider.views.inc, line 11
Include file for defining views handlers and data.

Code

function drupal_slider_views_data() {
  $data['drupal_slider']['table']['group'] = t('Global');
  $data['drupal_slider']['table']['join'] = [
    '#global' => [],
  ];
  $data['drupal_slider']['drupal_slider_layers'] = [
    'title' => t('Drupal Slider Layers'),
    'field' => [
      'title' => t('Drupal Slider Layers'),
      'help' => t('Shows views values in slider'),
      'id' => 'drupal_slider_layers',
    ],
  ];
  $data['drupal_slider']['drupal_slider_thumbnails'] = [
    'title' => t('Drupal Slider thumbnails'),
    'field' => [
      'title' => t('Drupal Slider thumbnails'),
      'help' => t('Shows thumbnails in slider'),
      'id' => 'drupal_slider_thumbnails',
    ],
  ];
  return $data;
}