public function __construct() { $node = new DrupalNodeTransformer(); $node->setImporter($this); $menuLink = new DrupalMenuLinkTransformer(); $menuLink->setImporter($this); $this->contentTransforms['node'] = $node; $this->contentTransforms['menuLink'] = $menuLink; }
public function init() { $node = new DrupalNodeTransformer(); $node->setImporter($this); $menuLink = new DrupalMenuLinkTransformer(); $menuLink->setImporter($this); $taxonomyTerm = new DrupalTaxonomyTermTransformer(); $taxonomyTerm->setImporter($this); $this->contentTransforms['node'] = $node; $this->contentTransforms['menuLink'] = $menuLink; $this->contentTransforms['taxonomyTerm'] = $taxonomyTerm; }