function CommentType::getCommentFields
Same name in other branches
- 9 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::getCommentFields()
- 11.x core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::getCommentFields()
Returns the fields containing comment settings for each node type.
Return value
string[] An associative array of field descriptions, keyed by field.
2 calls to CommentType::getCommentFields()
- CommentType::fields in core/
modules/ comment/ src/ Plugin/ migrate/ source/ CommentType.php - Returns available fields on the source.
- CommentType::prepareRow in core/
modules/ comment/ src/ Plugin/ migrate/ source/ CommentType.php - Adds additional data to the row.
File
-
core/
modules/ comment/ src/ Plugin/ migrate/ source/ CommentType.php, line 60
Class
- CommentType
- Drupal 6/7 comment types source from database.
Namespace
Drupal\comment\Plugin\migrate\sourceCode
protected function getCommentFields() {
return [
'comment' => $this->t('Default comment setting'),
'comment_default_mode' => $this->t('Default display mode'),
'comment_default_per_page' => $this->t('Default comments per page'),
'comment_anonymous' => $this->t('Anonymous commenting'),
'comment_subject_field' => $this->t('Comment subject field'),
'comment_preview' => $this->t('Preview comment'),
'comment_form_location' => $this->t('Location of comment submission form'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.