You are here

function json_field_field_views_data in JSON Field 8

Implements hook_field_views_data().

Views integration for JSON fields. Adds a data field to the default field data.

See also

field_views_field_default_views_data()

File

./json_field.views.inc, line 17
Contains json_field.views.inc.

Code

function json_field_field_views_data(FieldStorageConfigInterface $field_storage) {

  // Use the JSONViews service to get the views data.
  return \Drupal::service('json_field.views')
    ->getViewsFieldData($field_storage);
}