You are here

public function MigrateDestinationParagraphsItem::__construct in Paragraphs 7

Basic initialization.

Parameters

object $bundle: A bundle.

array $options: (optional) Options applied to collections.

Overrides MigrateDestinationEntity::__construct

File

migrate/destinations/MigrateDestinationParagraphsItem.inc, line 44

Class

MigrateDestinationParagraphsItem
Provides basic class for importing Paragraphs via Migrate API.

Code

public function __construct($bundle, array $options = array()) {
  parent::__construct('paragraphs_item', $bundle, $options);
  $this->field_name = isset($options['field_name']) ? $options['field_name'] : '';
}