You are here

public function MigrateEntityReferenceFieldHandler::__construct in Entity reference 7

Constructor.

Overrides MigrateSimpleFieldHandler::__construct

File

./entityreference.migrate.inc, line 25
Support for processing entity reference fields in Migrate.

Class

MigrateEntityReferenceFieldHandler
Extended class for handling entityreference fields.

Code

public function __construct() {
  parent::__construct(array(
    'value_key' => 'target_id',
    'skip_empty' => TRUE,
  ));
  $this
    ->registerTypes(array(
    'entityreference',
  ));
}