You are here

views_autorefresh_d8.module in Views Autorefresh D8 port 8

Views_autorefresh_d8 module file.

File

views_autorefresh_d8.module
View source
<?php

/**
 * @file
 * Views_autorefresh_d8 module file.
 */

/**
 * Implements hook_views_data_alter().
 */
function views_autorefresh_d8_views_data_alter(array &$data) {

  // Add our autorefresh area to Global.
  $data['views']['autorefresh'] = [
    'title' => t('Autorefresh'),
    'help' => t('Enable autorefresh for this view. NOTE: This will automatically turn AJAX support ON.'),
    'area' => [
      'id' => 'views_autorefresh_area',
    ],
  ];
}