You are here

public function MigrateDestinationEntity::__construct in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/destinations/entity.inc \MigrateDestinationEntity::__construct()

Simply save the key schema.

Parameters

array $key_schema:

Overrides MigrateDestination::__construct

4 calls to MigrateDestinationEntity::__construct()
MigrateDestinationComment::__construct in plugins/destinations/comment.inc
Basic initialization
MigrateDestinationNode::__construct in plugins/destinations/node.inc
Basic initialization
MigrateDestinationTerm::__construct in plugins/destinations/term.inc
Basic initialization
MigrateDestinationUser::__construct in plugins/destinations/user.inc
Basic initialization
4 methods override MigrateDestinationEntity::__construct()
MigrateDestinationComment::__construct in plugins/destinations/comment.inc
Basic initialization
MigrateDestinationNode::__construct in plugins/destinations/node.inc
Basic initialization
MigrateDestinationTerm::__construct in plugins/destinations/term.inc
Basic initialization
MigrateDestinationUser::__construct in plugins/destinations/user.inc
Basic initialization

File

plugins/destinations/entity.inc, line 60
Defines base for migration destinations implemented as Drupal entities. Drupal 6 note: Yes, there is no "entity" in D6. We maintain this intermediate class to simplify keeping the D6 and D7 implementations in sync.

Class

MigrateDestinationEntity
Abstract base class for entity-based destination handling. Holds common Field API-related functions.

Code

public function __construct($entity_type, $bundle, array $options = array()) {
  parent::__construct();
  $this->entityType = $entity_type;
  $this->bundle = $bundle;
  $this->language = isset($options['language']) ? $options['language'] : LANGUAGE_NONE;
  $this->textFormat = isset($options['text_format']) ? $options['text_format'] : filter_fallback_format();
}