You are here

public function MigrateDestinationTerm::__construct in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/destinations/term.inc \MigrateDestinationTerm::__construct()

Basic initialization

Parameters

array $options: Options applied to terms.

Overrides MigrateDestinationEntity::__construct

File

plugins/destinations/term.inc, line 54
Support for taxonomy term destinations.

Class

MigrateDestinationTerm
Destination class implementing migration into terms.

Code

public function __construct($bundle, array $options = array()) {
  parent::__construct('taxonomy_term', $bundle, $options);
  if (isset($options['allow_duplicate_terms'])) {
    $this->allowDuplicateTerms = $options['allow_duplicate_terms'];
  }
}