You are here

public function MigrateSourceReference::__construct in Relation 8

Same name and namespace in other branches
  1. 8.2 relation_migrate/relation_migrate.source.inc \MigrateSourceReference::__construct()
  2. 7 relation_migrate/relation_migrate.source.inc \MigrateSourceReference::__construct()

Constructor.

Parameters

string $field: Field type machine name.

array $fields: List of fields to be migrated.

4 calls to MigrateSourceReference::__construct()
MigrateSourceEntityReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.
MigrateSourceNodeReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.
MigrateSourceTermReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.
MigrateSourceUserReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.
4 methods override MigrateSourceReference::__construct()
MigrateSourceEntityReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.
MigrateSourceNodeReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.
MigrateSourceTermReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.
MigrateSourceUserReference::__construct in relation_migrate/relation_migrate.source.inc
Constructor.

File

relation_migrate/relation_migrate.source.inc, line 42
Source plugin for *reference fields.

Class

MigrateSourceReference
Migration source for *ference field. This source is primary used in relation_migrate to convert *reference entries into relation entities.

Code

public function __construct($field_type, array $fields, array $options = array()) {
  parent::__construct($options);
  $this->fields = $fields;
  $this->field_type = $field_type;
}