You are here

public function DisqusComment::fields in Disqus 8

Same name in this branch
  1. 8 src/Plugin/migrate/source/DisqusComment.php \Drupal\disqus\Plugin\migrate\source\DisqusComment::fields()
  2. 8 src/Plugin/migrate/destination/DisqusComment.php \Drupal\disqus\Plugin\migrate\destination\DisqusComment::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

src/Plugin/migrate/source/DisqusComment.php, line 104

Class

DisqusComment
Disqus comment source using disqus-api.

Namespace

Drupal\disqus\Plugin\migrate\source

Code

public function fields() {
  return [
    'id' => $this
      ->t('Comment ID.'),
    'pid' => $this
      ->t('Parent comment ID. If set to null, this comment is not a reply to an existing comment.'),
    'identifier' => $this
      ->t("The disqus identifier to look up the corrent thread."),
    'name' => $this
      ->t("The comment author's name."),
    'user_id' => $this
      ->t('The disqus user-id of the author who commented.'),
    'email' => $this
      ->t("The comment author's email address."),
    'url' => $this
      ->t("The author's home page address."),
    'ipAddress' => $this
      ->t("The author's IP address."),
    'isAnonymous' => $this
      ->t('If true, this comments has been posted by an anonymous user.'),
    'isApproved' => $this
      ->t('If the comment is approved or not.'),
    'createdAt' => $this
      ->t('The time that the comment was created.'),
    'comment' => $this
      ->t('The comment body.'),
    'isEdited' => $this
      ->t('Boolean value indicating if the comment has been edited or not.'),
  ];
}