You are here

function photos_views_data_alter in Album Photos 8.5

Same name and namespace in other branches
  1. 7.3 inc/views/photos.views.inc \photos_views_data_alter()
  2. 6.0.x photos.module \photos_views_data_alter()

Implements hook_views_data_alter().

File

./photos.module, line 1407
Implementation of photos.module.

Code

function photos_views_data_alter(array &$data) {
  $data['photos_image_field_data']['uid']['argument'] = [
    'id' => 'user_uid',
    'name table' => 'users_field_data',
    'name field' => 'name',
    'empty field name' => \Drupal::config('user.settings')
      ->get('anonymous'),
  ];
}