You are here

public function MigrateViewModeSelectorValueFieldHandler::__construct in View Mode Selector 7

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 MigrateValueFieldHandler::__construct

File

./view_mode_selector.migrate.inc, line 12
Support for Migrate API module.

Class

MigrateViewModeSelectorValueFieldHandler
Field handler class to implement view mode selector field migration.

Code

public function __construct() {
  $this
    ->registerTypes(array(
    'view_mode_selector',
  ));
}