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

return [
  'name' => 'youtube', 
  'title' => 'YouTube', 
  'description' => 'Advanced query for public videos via an API Key.', 
  'group' => 'Social Media', 
  'collection' => 'YouTube', 
  'collectionDescription' => 'Sources based on YouTube media.', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/source/providers/YouTube/icon.svg', $file), 
  'endpoints' => [
    'presave' => 'yooessentials/source/youtube'
  ], 
  'fields' => [
    'name' => [
      'label' => 'Name', 
      'description' => 'A name to identify this source.', 
      'attrs' => [
        'autofocus' => true, 
        'placeholder' => 'YouTube'
      ]
    ], 
    'api_key' => [
      'label' => 'API Key', 
      'type' => 'yooessentials-connected-auth', 
      'connections' => [
        'google-api-key' => []
      ], 
      'description' => 'The Google API Key which to authenticate with.'
    ], 
    'cache_default' => $config->get('yooessentials.source.fields.cache_default')
  ]
];
