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

return [
  'name' => 'vimeo', 
  'title' => 'Vimeo', 
  'description' => 'Source based on Media from Vimeo.', 
  'group' => 'Social Media', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/source/providers/Vimeo/icon.svg', $file), 
  'endpoints' => [
    'presave' => 'yooessentials/source/vimeo'
  ], 
  'fields' => [
    'name' => [
      'label' => 'Name', 
      'description' => 'A name to identify this source.', 
      'attrs' => [
        'autofocus' => true, 
        'placeholder' => 'Vimeo'
      ]
    ], 
    'account' => [
      'label' => 'Account', 
      'type' => 'yooessentials-connected-auth', 
      'connections' => [
        'vimeo' => ['video_files']
      ], 
      'description' => 'The Vimeo account from which to create the source.'
    ], 
    'cache_default' => $config->get('yooessentials.source.fields.cache_default_limited')
  ]
];
