<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/yooessentials/modules/source/providers/GooglePhotos/config.json

return [
  'name' => 'google_photos', 
  'title' => 'Google Photos', 
  'description' => 'Source based on Google Photos media.', 
  'group' => 'misc', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/source/providers/GooglePhotos/icon.svg', $file), 
  'endpoints' => [
    'presave' => 'yooessentials/source/google/photos'
  ], 
  'fields' => [
    'name' => [
      'label' => 'Name', 
      'description' => 'A name to identify this source.', 
      'attrs' => [
        'autofocus' => true
      ]
    ], 
    'account' => [
      'label' => 'Account', 
      'type' => 'yooessentials-connected-auth', 
      'connections' => [
        'google' => ['https://www.googleapis.com/auth/photoslibrary.readonly']
      ], 
      'description' => 'The Google account with which to access the resources.'
    ], 
    'cache_default' => $config->get('yooessentials.source.fields.cache_default_limited')
  ]
];
