media_entity_twitter.settings:
  type: config_object
  label: 'Media entity Twitter settings'
  mapping:
    local_images:
      type: string
      label: 'Base folder for thumbnails'

media.source.twitter:
  type: media.source.field_aware
  label: '"Twitter" media source configuration'
  mapping:
    use_twitter_api:
      type: boolean
      label: 'Whether to use twitter api or not'
    consumer_key:
      type: string
      label: 'Field with Consumer key'
    consumer_secret:
      type: string
      label: 'Field with Consumer secret'
    oauth_access_token:
      type: string
      label: 'Field with Oauth access token'
    oauth_access_token_secret:
      type: string
      label: 'Field with Oauth access token secret'
    generate_thumbnails:
      type: boolean
      label: 'Enable automatic thumbnail generation'

field.formatter.settings.twitter_embed:
  type: mapping
  label: 'Twitter field display format settings'
  mapping:
    conversation:
      type: boolean
      label: 'Show previous tweet'
