You are here

public function FeedsSimplePieParser::getMappingSources in Feeds 8.2

Return mapping sources.

Overrides FeedsParser::getMappingSources

File

lib/Drupal/feeds/Plugin/feeds/parser/FeedsSimplePieParser.php, line 126
Contains FeedsSimplePieParser and related classes.

Class

FeedsSimplePieParser
Defines a CSV feed parser.

Namespace

Drupal\feeds\Plugin\feeds\parser

Code

public function getMappingSources() {
  return array(
    'title' => array(
      'name' => t('Title'),
      'description' => t('Title of the feed item.'),
    ),
    'description' => array(
      'name' => t('Description'),
      'description' => t('Description of the feed item.'),
    ),
    'author_name' => array(
      'name' => t('Author name'),
      'description' => t('Name of the feed item\'s author.'),
    ),
    'author_link' => array(
      'name' => t('Author link'),
      'description' => t('Link to the feed item\'s author.'),
    ),
    'author_email' => array(
      'name' => t('Author email'),
      'description' => t('Email address of the feed item\'s author.'),
    ),
    'timestamp' => array(
      'name' => t('Published date'),
      'description' => t('Published date as UNIX time GMT of the feed item.'),
    ),
    'url' => array(
      'name' => t('Item URL (link)'),
      'description' => t('URL of the feed item.'),
    ),
    'guid' => array(
      'name' => t('Item GUID'),
      'description' => t('Global Unique Identifier of the feed item.'),
    ),
    'tags' => array(
      'name' => t('Categories'),
      'description' => t('An array of categories that have been assigned to the feed item.'),
    ),
    'domains' => array(
      'name' => t('Category domains'),
      'description' => t('Domains of the categories.'),
    ),
    'location_latitude' => array(
      'name' => t('Latitudes'),
      'description' => t('An array of latitudes assigned to the feed item.'),
    ),
    'location_longitude' => array(
      'name' => t('Longitudes'),
      'description' => t('An array of longitudes assigned to the feed item.'),
    ),
    'enclosures' => array(
      'name' => t('Enclosures'),
      'description' => t('An array of enclosures attached to the feed item.'),
    ),
  ) + parent::getMappingSources();
}