You are here

public function MigrateBlockReferenceFieldHandler::__construct in Block reference 7.2

Same name and namespace in other branches
  1. 7 MigrateBlockReferenceFieldHandler.inc \MigrateBlockReferenceFieldHandler::__construct()

Construct a simple field handler.

Parameters

$options: Array of options (rather than unamed parameters so you don't have to what TRUE or FALSE means). The following keys are used:

  • 'value_key' string with the name of the key in the fields value array.
  • 'skip_empty' Boolean indicating that empty values should not be saved.

Overrides MigrateSimpleFieldHandler::__construct

File

./MigrateBlockReferenceFieldHandler.inc, line 10
Support for processing blockreference fields in Migrate.

Class

MigrateBlockReferenceFieldHandler
@file Support for processing blockreference fields in Migrate.

Code

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