Same name and namespace in other branches
- 9 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\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\sourceCode
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();
}