You are here

function plugin_field_views_data_alter in Plugin 8.2

Implements hook_field_views_data_alter().

File

./plugin.module, line 48
Contains hook implementations.

Code

function plugin_field_views_data_alter(array &$data, FieldStorageConfigInterface $field_storage) {

  /** @var \Drupal\plugin\ViewsData $views_data */
  $views_data = \Drupal::service('plugin.views_data');
  $views_data
    ->alterFieldViewsData($data, $field_storage);
}