function CommentType::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

core/modules/comment/src/Plugin/migrate/source/CommentType.php, line 47

Class

CommentType
Drupal 6/7 comment types source from database.

Namespace

Drupal\comment\Plugin\migrate\source

Code

public function fields() {
  return [
    'name' => $this->t('Human name of the parent node type.'),
    'type' => $this->t('Machine name of the parent node type.'),
  ] + $this->getCommentFields();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.