You are here

public function CommentVariablePerCommentType::fields in Drupal 8

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 52

Class

CommentVariablePerCommentType
Plugin annotation @MigrateSource( id = "d6_comment_variable_per_comment_type", source_module = "comment" )

Namespace

Drupal\comment\Plugin\migrate\source\d6

Code

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