You are here

function range_field_views_data in Range 8

Same name and namespace in other branches
  1. 7 views/range.views.inc \range_field_views_data()

Implements hook_field_views_data().

File

./range.views.inc, line 13
Provides views data for the range module.

Code

function range_field_views_data(FieldStorageConfigInterface $field_storage) {
  $data = views_field_default_views_data($field_storage);
  if (!empty($data)) {
    range_field_views_data_filter($data, $field_storage);
    range_field_views_data_argument($data, $field_storage);
  }
  return $data;
}