MigrateDestinationRole
Last updated on
30 April 2025
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
To migrate user role information into Drupal roles, uses the MigrateDestinationRole class:
$this->destination = new MigrateDestinationRole();
$this->addFieldMapping('name', 'source_role_name');
$this->addFieldMapping('weight', 'source_role_weight');
The constructor takes no arguments or options. Only two fields are available for mapping - the role name, and the weight (order it should be displayed in).
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion