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

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