You are here

class WorkbenchModerationMigrateDestinationHandler in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 workbench_moderation.migrate.inc \WorkbenchModerationMigrateDestinationHandler

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
MigrateHandler::$dependencies protected property List of other handler classes which should be invoked before the current one.
MigrateHandler::$typesHandled protected property List of "types" handled by this handler. Depending on the kind of handler, these may be destination types, field types, etc.
MigrateHandler::getDependencies public function
MigrateHandler::getTypesHandled public function
MigrateHandler::registerTypes protected function Register a list of types handled by this class
WorkbenchModerationMigrateDestinationHandler::fields public function
WorkbenchModerationMigrateDestinationHandler::handlesType public function Does this handler handle the given type? Overrides MigrateHandler::handlesType
WorkbenchModerationMigrateDestinationHandler::__construct public function Overrides MigrateHandler::__construct