Disable pathauto for nodes created with migrate module I'm using migrate to import a bunch of nodes and I want to set the path alias during the migration. I am able to import the path alias just fine like so:

$this-&gt;addFieldMapping('path', 'url_alias');


When I look at the imported nodes I see the correct path in the path field, but the Generate automatic URL alias checkbox is still checked which means the setting is getting ignored.

How do I disable that setting on the node during migration?
You basically need to make sure the $node object is passed in with pathauto set to false when it is saved.

In your migration class:

function prepare(&amp;$row) {
  $row-&gt;path['pathauto'] = 0;
}