protected function MigrateHandler::registerTypes in Migrate 7.2
Same name and namespace in other branches
- 6.2 includes/handler.inc \MigrateHandler::registerTypes()
Register a list of types handled by this class
Parameters
array $types:
12 calls to MigrateHandler::registerTypes()
- MigrateCommentNodeHandler::__construct in plugins/
destinations/ comment.inc - MigrateFieldsEntityHandler::__construct in plugins/
destinations/ fields.inc - MigrateFileFieldHandler::__construct in plugins/
destinations/ fields.inc - MigrateImageFieldHandler::__construct in plugins/
destinations/ fields.inc - MigrateNodeReferenceFieldHandler::__construct in plugins/
destinations/ fields.inc - Construct a simple field handler.
File
- includes/
handler.inc, line 43 - Defines the base class for destination handlers.
Class
- MigrateHandler
- Abstract base class for destination handlers. Handler objects are expected to implement appropriate methods (e.g., prepare, complete, or fields).
Code
protected function registerTypes(array $types) {
// Make the type names the keys
foreach ($types as $type) {
$type = drupal_strtolower($type);
$this->typesHandled[$type] = $type;
}
}