public function MigrateSourceReference::__construct in Relation 7
Same name and namespace in other branches
- 8.2 relation_migrate/relation_migrate.source.inc \MigrateSourceReference::__construct()
- 8 relation_migrate/relation_migrate.source.inc \MigrateSourceReference::__construct()
Constructor.
Parameters
string $field Field type machine name.:
array $fields List of fields to be migrated.:
Overrides MigrateSource::__construct
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 40 - 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;
}