public function MigrateSimpleFieldHandler::__construct in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/destinations/fields.inc \MigrateSimpleFieldHandler::__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 MigrateHandler::__construct
3 calls to MigrateSimpleFieldHandler::__construct()
- MigrateNodeReferenceFieldHandler::__construct in plugins/
destinations/ fields.inc - Construct a simple field handler.
- MigrateUserReferenceFieldHandler::__construct in plugins/
destinations/ fields.inc - Construct a simple field handler.
- MigrateValueFieldHandler::__construct in plugins/
destinations/ fields.inc - Construct a simple field handler.
3 methods override MigrateSimpleFieldHandler::__construct()
- MigrateNodeReferenceFieldHandler::__construct in plugins/
destinations/ fields.inc - Construct a simple field handler.
- MigrateUserReferenceFieldHandler::__construct in plugins/
destinations/ fields.inc - Construct a simple field handler.
- MigrateValueFieldHandler::__construct in plugins/
destinations/ fields.inc - Construct a simple field handler.
File
- plugins/
destinations/ fields.inc, line 267 - Support for processing entity fields
Class
- MigrateSimpleFieldHandler
- Base class for creating field handlers for fields with a single value.
Code
public function __construct($options = array()) {
if (isset($options['value_key'])) {
$this->fieldValueKey = $options['value_key'];
}
if (isset($options['skip_empty'])) {
$this->skipEmpty = $options['skip_empty'];
}
}