public function MigrateDestinationEntity::__construct in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/destinations/entity.inc \MigrateDestinationEntity::__construct()
Simply save the key schema.
Parameters
array $key_schema:
Overrides MigrateDestination::__construct
5 calls to MigrateDestinationEntity::__construct()
- MigrateDestinationComment::__construct in plugins/
destinations/ comment.inc - Basic initialization
- MigrateDestinationFile::__construct in plugins/
destinations/ file.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
5 methods override MigrateDestinationEntity::__construct()
- MigrateDestinationComment::__construct in plugins/
destinations/ comment.inc - Basic initialization
- MigrateDestinationFile::__construct in plugins/
destinations/ file.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 63 - Defines base for migration destinations implemented as Drupal entities.
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();
}