class WorkbenchModerationMigrateDestinationHandler in Workbench Moderation 7
Same name and namespace in other branches
- 7.3 workbench_moderation.migrate.inc \WorkbenchModerationMigrateDestinationHandler
Hierarchy
- class \MigrateHandler
Expanded class hierarchy of WorkbenchModerationMigrateDestinationHandler
File
- ./
workbench_moderation.migrate.inc, line 3
View source
class WorkbenchModerationMigrateDestinationHandler extends MigrateDestinationHandler {
public function __construct() {
}
public function handlesType($destination) {
return $destination == 'Node';
}
public function fields($entity_type, $bundle_type) {
$fields = array();
if (workbench_moderation_node_type_moderated($bundle_type)) {
$fields['workbench_moderation_state_new'] = t('Moderation state');
}
return $fields;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateHandler:: |
protected | property | List of other handler classes which should be invoked before the current one. | |
MigrateHandler:: |
protected | property | List of "types" handled by this handler. Depending on the kind of handler, these may be destination types, field types, etc. | |
MigrateHandler:: |
public | function | ||
MigrateHandler:: |
public | function | ||
MigrateHandler:: |
protected | function | Register a list of types handled by this class | |
WorkbenchModerationMigrateDestinationHandler:: |
public | function | ||
WorkbenchModerationMigrateDestinationHandler:: |
public | function |
Does this handler handle the given type? Overrides MigrateHandler:: |
|
WorkbenchModerationMigrateDestinationHandler:: |
public | function |
Overrides MigrateHandler:: |