You are here

public function CommentVariablePerCommentType::fields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php \Drupal\comment\Plugin\migrate\source\d6\CommentVariablePerCommentType::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 CommentVariable::fields

File

core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php, line 51
Contains \Drupal\comment\Plugin\migrate\source\d6\CommentVariablePerCommentType.

Class

CommentVariablePerCommentType
Plugin annotation @MigrateSource( id = "d6_comment_variable_per_comment_type" )

Namespace

Drupal\comment\Plugin\migrate\source\d6

Code

public function fields() {
  return array(
    'comment_type' => $this
      ->t('The comment type'),
    'label' => $this
      ->t('The comment type label'),
    'description' => $this
      ->t('The comment type description'),
  );
}