You are here

class MigrateCommentNodeHandler in Migrate 7.2

Hierarchy

Expanded class hierarchy of MigrateCommentNodeHandler

1 string reference to 'MigrateCommentNodeHandler'
migrate_migrate_api in ./migrate.migrate.inc

File

plugins/destinations/comment.inc, line 369
Support for comment destinations.

View source
class MigrateCommentNodeHandler extends MigrateDestinationHandler {
  public function __construct() {
    $this
      ->registerTypes(array(
      'node',
    ));
  }

  /**
   * Implementation of MigrateDestinationHandler::fields().
   */
  public function fields($entity_type, $bundle, $migration = NULL) {
    $fields = array();
    $fields['comment'] = t('Whether comments may be posted to the node');
    return $fields;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateCommentNodeHandler::fields public function Implementation of MigrateDestinationHandler::fields().
MigrateCommentNodeHandler::__construct public function Overrides MigrateHandler::__construct
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::handlesType public function Does this handler handle the given type? 1
MigrateHandler::registerTypes protected function Register a list of types handled by this class