You are here

class NodeComment in Import 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/NodeComment.php \Drupal\import\Plugin\migrate\source\NodeComment

Source for node Comment CSV.

Plugin annotation


@MigrateSource(
  id = "node_comment"
)

Hierarchy

  • class \Drupal\import\Plugin\migrate\source\NodeComment extends \Drupal\migrate_source_csv\Plugin\migrate\source\CSV

Expanded class hierarchy of NodeComment

File

src/Plugin/migrate/source/NodeComment.php, line 20
Contains \Drupal\import\Plugin\migrate\source\NodeComment.

Namespace

Drupal\import\Plugin\migrate\source
View source
class NodeComment extends CSV {
  public function prepareRow(Row $row) {

    // Provide the Default comment settings.
    $row
      ->setDestinationProperty('entity_type', 'node');
    $row
      ->setDestinationProperty('field_name', 'comment');
  }

}

Members